I want to run a batch file from windows, which connect to mysql server on different machine, and run a procedure from database or run a sql file which is sitting in my local machine.
is there's a way to do it. I know that I need the below script in my batch file to run sql commands but I believe it's only work when you run the batch file in mysql server enviornment.
do I have to define the server info (e.g IP address & port) how do I do that
any help would be appricated
Thanks
mysql --user=XXX --password=XXXX --database=XXX < XXX.sql