开发者

How to export all the databases with phpmyadmin

Can I export all the databases with o开发者_开发百科ne-go using phpMyadmin?

If not what is the best way to do it?

Thanks in advance.


Here are the steps to use to export all your mySQL databases using phpMyAdmin. (Dec 2015) As phpMyAdmin evolves new features are added.

  1. Open phpMyAdmin and select the Databases tab. Check that all your databases should are listed there.
  2. Select the Export tab, and then select the Custom tab. You do not want to use the default settings
  3. All the databases will be selected. Unselect any you do not want to backup. The system files are not included, and you do not need them.
  4. Under the "Output" option, select "Export databases as separate files". This will automatically change the download file to ZIP with the individual database files in it.
  5. Move down the the "Object creation options"
  6. Select "Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT / TRIGGER statement"
  7. Unselect the "AUTO_INCREMENT value". Depending on the structure of your databases, you might have to select this. If you are not sure, just keep it selected.
  8. Click on "Go". The ZIP file will download and you can save that in a safe place.


If you login as the root user, you should be able to select every database you want to backup, then export it from there.

  1. Open your PHPAdmin site in a web browser.
  2. Click on the "Export" tab

    How to export all the databases with phpmyadmin

  3. On the export page select the database you wish to backup or select all using the controls above the input field.

    How to export all the databases with phpmyadmin

  4. Then configure any options you would like to have. I highly suggest you read the documentation to determine exactly what you options you should use. You can read more about the options in the phpMyAdmin documentation
  5. Click go

    How to export all the databases with phpmyadmin


mysqldump is the easiest way. I've never done it with phpMyAdmin.

http://dev.mysql.com/doc/refman/4.1/en/mysqldump.html

mysqldump --all-databases > backup.sql


After you log in to phpmyadmin, just click export. It should select all databases by default.


You can do this with mysqldump and the --all-databases option:

mysqldump -u username -ppassword –all-databases > dump.sql


Kyle Brost's Solution just exporting one Current Database for me.

By the way I found this link and got the solution that will may helpful to you:

mysqldump -u root -p --all-databases > alldb_backup.sql

Note: It will ask you for password, input it if you have set any password in MySQL or Press Enter directly.

Keep Exporting

Thanks :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜