O
O
Oleg Korolenko2017-09-25 10:43:54
MySQL
Oleg Korolenko, 2017-09-25 10:43:54

How to download a database with SSH access?

See if you can access files with SHH..
WP sites..
Need to transfer them to another hosting...
How can I download the database?
define('DB_HOST', 'localhost:');

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Andreev, 2017-09-25
@legoex

Well, something like this (run locally):

ssh [email protected] "mysqldump -u USER -pPASSWORD DATABASE" >> local_dump.sql

C
CityCat4, 2017-09-25
@CityCat4

Drag the /var/lib/mysql or /var/db/mysql directory, where all the databases actually lie. If, of course, there are enough rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question