I'm trying to move a MySQL database from a Linux machine to one running Windows Vista. (I know, that seems the wrong direction, never mind why I want to do this.) Using mysqldump, I've obtained an .sql file, which I have moved to the Windows machine. What next?
If I were moving to another Linux machine, one could do this sort of thing:
mysql -u username -p databasename < dumpfile.sql
Does anyone know of an analogous invocation that works from the Windows command line? Or are there tools to accomplish this?
Edit: When I try this type of command from the Windows command line, I get:
'mysql' is not recognized as an internal or external command . . .
Maybe I just don't know in which directory I should be, but I haven't found one that works.
Edit #2 I've also tried
mysql> source C:\Stuff\dumpfile.sql
That gave:
Failed to open file 'C:\Stuff\dumpfile.sql', error: 2