Backup database(s) using query without using mysqldump

前端 未结 3 1059
萌比男神i
萌比男神i 2020-12-30 04:09

I\'d like to dump my databases to a file.

Certain website hosts don\'t allow remote or command line access, so I have to do this using a series of queries.

A

3条回答
  •  萌比男神i
    2020-12-30 05:06

    Use / Install PhpMySQLAdmin on your web server and click export. Many web hosts already offer you this as a service pre-configured, and it's easy to install if you don't already have it (pure php): http://www.phpmyadmin.net/

    This allows you to export your database(s), as well as perform other otherwise tedious database operations very quickly and easily -- and it works for older versions of PHP < 5.3 (unlike the Mysqldump.php offered as another answer here).

    I am aware that the question states 'using query' but I believe the point here is that any means necessary is sought when shell access is not available -- that is how I landed on this page, and PhpMyAdmin saved me!

提交回复
热议问题