How to execute MySQL scripts (.sql) files
SQL script simply contains a series of SQL statements to be executed in order. This helps readability, allows reusability, and mitigates the chances of making mistakes. Besides, you can also get your script peer-reviewed.