mysql how to run sql file from command line code example Example: mysql run sql file mysql> source \home\user\Desktop\test.sql;