Export Database Remote SSH

The following guide describes how to quickly export a database remotely via ssh from a remote server.

A long time ago I described the way to exporting mysql database locally.

Today I will show you how to download the database directly to your server.

The whole thing is not much different.

The command looks like this:

Example:

The name of the database and user in this case is pesco.
The remote host is sql.pesco.nazwa.pl
a file named pesco.sql will be created

If the base is on a non-standard port, e.g. 3307 we can add an appropriate argument, e.g. :

The comment will be as follows:

Important note.

In order to be able to download the database in this way, the database must be able to connect remotely!

After such a quick export, we will also very quickly import the database with us, but that's right I described here before.

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.