Page 1 of 1

Running scripts using 'source' from MySQL commandline

Posted: Fri Feb 16, 2007 6:46 am
by mjseaden
Hi,

The MySQL manual says that I should place a script in the 'home directory', and use the 'source' command 'source %s.sql' from the MySQL commandline to execute the script.

It doesn't say where the 'home directory' is, where should I place my script? The root directory of my MySQL install is C:\MySQL5

Many thanks

Posted: Fri Feb 16, 2007 7:54 am
by feyd
Try stuff.

Posted: Fri Feb 16, 2007 7:56 am
by volka
Sounds like unix/linux . Where in the manual did you find this?

Posted: Fri Feb 16, 2007 8:19 am
by onion2k
I just stick them in C:\ and then use source c:/myscript.sql; in the client. I never bother with all that home directory stuff.