Monday, August 22, 2022

Import SQL file into mysql database

Import SQL file into mysql database:
1. login into your mysql client by command line:

mysql -uroot -p [hit enter] and [give password]

2. Create database be below command:

create database name_of_your_datebase;

3. Select your database by below command:

use name_of_your_database;

4. Import command:

source path_of_your_sql_file;

Wordpress debug log function

Wordpress error log code: if ( ! function_exists ( 'write_log' ) ) { function write_log ( $data ) { if ( defined ( '...