1. The sql files to be executed are 1.sql, 2.sql, 3.sql, 4.sql, etc.
2. Write a batch.sql file:
source 1.sql; source 2.sql; source 3.sql; source 4.sql;
3. Execute source/batch file directory/batch.sql under mysql;
The above is the entire method of mysql batch execution of sql files brought to you by the editor. I hope you will support it~