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;

Switch PHP version in Ubuntu OS or Zorin OS

First check where is installed your PHP by the below command: $ which php See PHP version by below command: $ php -v As I've installed P...