Execute the sql file of mysql under linux
First you need to enter on the command line: mysql -uroot -p (where root is your database user name)
After entering it, you will be prompted to enter the password. After entering the password, you will enter the mysql console;
Then execute the command use shujuku; (shukuju is your own database)
After the word Database changed appears, it means that you have opened it. The database currently used is shujuku.
Then you can execute source /lujing/mysql.sql (where /lujing is the absolute path where you store the sql file, for example, your sql file is placed in /usr/mysql/mysql.sql, then execute source /usr/ mysql/mysql.sql can be)