| Journal Home Official Blog |
Restore MySQL database from sql dump file?Tweet This is more of a personal note for myself because I keep forgetting the syntax :p. When developing web applications I often, 'mess around' with the database and I then need to restore it to make sure everything is running ok, (or simply to run some kind of test again and again). z:\mysql.exe - u USERNAME -p DATABASE < dump.sql Enter password: ******** Replace USERNAME with your database username, DATABASE with your database name and of course the 'dumpo.sql' with the name of your sql dump file. You will then be asked to enter your password and the update should happen with not too much problems. if you get an error message like "'mysql.exe' is not recignized as ab internal or external command, ...." this is because mysql is not in your pa;th%, so you will need to run the command above with the full path where mysql.exe is located, (normally in your program files directory). 06h37 - 5/31/2011 - post comment
Share and enjoy
|
Description
JournalHome.com has created this blog for the purpose of keeping members and visitors up to date with JournalHome.com site information.
Home User Profile Archives Friends My Wall Links Webmaster Forum Free Blog
Recent Entries - How to moderate thousands of posts in vBulletin 3.x without timeout - Happy new year! - Stand up against the Internet blacklist legislation - Very high server load - Started facebook promotion - Part 2 Entry Categories - Contest - HTML Code - News - Web Security - Politics - PHP Code - Changelog |
||||||||||||||||||||||||||||||||||||||||||||