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