Import SQL files under Linux

Blogging is an accumulation! Make excellence a habit! Remember what you do every day!

 

For the blank when logging in to the phpmyadmin console, use the command line to import the sql file

 

Important: Put the .sql file in the /home directory first

 

Use Xshell to log in to ECS and log in to the database

#mysql -u root -p

mysql>use mymy;

mysql>source /home/mymy_pack.sql;

 

Alibaba Cloud must take regular disk snapshots.

My WordPress blog site: http://www.senseiliu.top

 

For database backup, you can use the WordPress plugin WP-DB-Backup for backup.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325079716&siteId=291194637