How to dump remote database without mysqldump?
Posted
by deceze
on Server Fault
See other posts from Server Fault
or by deceze
Published on 2010-04-20T08:48:10Z
Indexed on
2010/04/20
8:53 UTC
Read the original article
Hit count: 403
I want to dump the database on my remotely hosted site in regular intervals using a shell script. Unfortunately the server is locked down pretty tight, has no mysqldump
installed, binary files can't be executed by normal users/in home directories (so I can't "install" it myself) and the database lives on a separate server, so I can't grab the files directly.
The only thing I can do is log into the webserver via SSH and establish a connection to the database server using the mysql
command line client. How can I dump the contents to a file a la mysqldump
in SQL format?
Bonus: If possible, how can I dump the contents directly to my end of the SSH connection?
© Server Fault or respective owner