APD Toronto
asked on
Executing a .sql file with CMD
Hi Experts,
I'm running MySQL on Win7, and I cannot remember, how can I execute myscript.sql from cmd?
Thank you
I'm running MySQL on Win7, and I cannot remember, how can I execute myscript.sql from cmd?
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You can access remote machines too?
yes assuming the user account is granted access from a specific machine or % for any machine; used with grant statement
mysql --host=servernane --user=username --password=password database_name < pathTofilename.sql
i.e. mysql -host=jupiter.localdomain.