Posted in: SSH

Importing .sql file from SSH

Login as adminonly via ssh.

SU Root

cd ../ ../ to get to your sites directory

type mysql -u <USERNAME> -p  Press Enter

Enter password

Type Use <DBNAME>

Type Source <filename.sql>

Wait until the mysql prompt appears and it’s all done.

 

**Do not type the <> in the example above, where <USERNAME> just type your username.

Have your say