Space into the database via SSH

Space Support SSH,It can be easily imported into the database via SSH

1. The database file format export to .sql,Do not compressed into .zip or .tar.gz file

2. .sql files uploaded to the server using FTP

3. Create a database,If the database does not exist

4. By SSH login server

5. In the SSH terminal,.sql file into the directory where

6. Run the following command:
# mysql -u username -p database_name < file.sql7. 然后,会提示输入数据库的密码,输入密码后就开始导入数据库的过程。在SSH中,使用命令行的方式,只能导入.sql文件

Leave a Comment