run mysql script from command line windows code example
Example 1: mysql cmd command to run
mysql.exe –uroot –p
Example 2: execute mysql file
mysql -u yourusername -p yourpassword yourdatabase < text_file
mysql.exe –uroot –p
mysql -u yourusername -p yourpassword yourdatabase < text_file