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