how to run a .sql file for mysql code example Example: mysql run sql file mysql> source \home\user\Desktop\test.sql;