Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
razstec
- Posts: 5
- Joined: 09 Mar 2012 09:13
#1
Post
by razstec » 23 Oct 2015 11:23
Hi, i need some help creating a batch file that allows me to import a db from mysql online server to my local server in my computer.
Have tried some code that i google but i cant seem to work it out.
Code: Select all
mysqldump -u [root] -p [pobd] > [pobd.sql] ----> export
mysql -u [root] -p [pobd] < [pobd.sql] ----> import
Got this but how can i specifie that the export is from an online server and the import is to the local server?
Can anyone help?
thanks
-
razstec
- Posts: 5
- Joined: 09 Mar 2012 09:13
#3
Post
by razstec » 23 Oct 2015 13:46
Yes your right.
I dont need the mysql, i need to know how to connect to server with batch file.