MySQL: Run in batch mode

The following code can be written in windows batch file (.bat):

cd "D:\EasyPHP-5.3.3.1\mysql\bin>"
D:\EasyPHP-5.3.3.1\mysql\bin>mysql -u root -p < c:\run_this_file.sql

Leave a Reply