centos pagoda using the command line to quickly import database sql

First sql file uploaded to the server, such as uploading to the www folder

Then open a command-line tool

Entry

mysql -u username -p database

 

Then copy the password into

Then enter

use the database name

Enter

Then enter

source /www/xxx.sql

Enter, whiz get

Guess you like

Origin www.cnblogs.com/zonglonglong/p/11204427.html