I have a Win7 machine running PHP/MySQL/Apache and I have MySQL Administrator, MySQL Manager for MySQL installed along with a few other tools like Toad MySQL 6.0…
I was looking for a solution for some utf-8 issues I’ve been having and the majority of solutions (ie this one) say to run a set of commands such as mysqldump etc… But HOW do I run a command on a windows machine? I’ve tried executing it as an SQL script, running from the Windows Run command like
"C:\Program Files\MySQL\MySQL Server 5.1\bin\" mysqldump MY_DB -uroot --opt --quote-names --skip-set-charset --default-character-set=latin1 >c:\MY_DB_latin1.sql
but without luck. Any suggestions would be very helpful.
The problem is the space between
"C:\Program Files\MySQL\MySQL Server 5.1\bin\"andmysqldump. This should read"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqldump".Adding the .exe is optional:
"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqldump.exe".If you want to execute MySQL commands instead of dumping the database you should use
mysql.exe:"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysql.exe". Use the-?option to get an overview of the command line options.