mysql - How do I restore a dump file from mysqldump? -


i given mysql database file need restore database on windows server 2008 machine.

i tried using mysql administrator, got following error:

the selected file generated mysqldump , cannot restored application.

how working?

it should simple running this:

mysql -u <user> -p < db_backup.dump 

if dump of single database may have add line @ top of file:

use <database-name-here>; 

if dump of many databases, use statements in there.

to run these commands, open command prompt (in windows) , cd directory mysql.exe executable (you may have around bit it, it'll depend on how installed mysql, i.e. standalone or part of package wamp). once you're in directory, should able type command have above.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -