I have exported all my databases to a file using phpMyAdmin.
Unfortunately I don't have a working phpmyadmin in my destination system.
How should I restore all of them at once using one line command?
|
I have exported all my databases to a file using phpMyAdmin. Unfortunately I don't have a working phpmyadmin in my destination system. How should I restore all of them at once using one line command? |
||||
|
Why dont you concat all the files into one single file and import using
Create one file using |
|||
|
If you backed up many database to 1 file, I suppose you backed up the After that, the command to load the file to mysql is:
You can use |
||||
|
|
|
mysql command to restore sql file is :
first make sure that file is sql. Incase it ends with gz file extension, you need to uncompress using command :
|
|||||||||
|
|
You may restore databases with the help of sql 2005 repair database http://www.sqlserverrepairtoolbox.com repairs data types, views, procedures, tables, keys, indexes and other objects |
|||
|
|
USE database_namecommand. – smhnaji Oct 9 '12 at 12:45