Running a SQL text file in mysql CLI Posted on 2015-05-16 [Saturday] by Jay Jay Reply Use the ‘source’ command: mysql> source path/to/file.sql