J
J
Justina Tenodzu2015-04-05 01:51:13
MySQL
Justina Tenodzu, 2015-04-05 01:51:13

How to dump mysql without having login to hosting control panel?

Hello people!
In general, such a problem: there is an admin panel with Modx Revo, there is access via ftp (respectively, mysql user and password are recognizable), there is no access to the hosting entrance !!! How to dump a database?
I dug in the direction of SQL Manager, installed everything, sees everything, but refuses to do a dump :(
Please help!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
T
TheSameSon, 2015-04-05
@TheSameSon

https://sypex.net/en/

X
xmoonlight, 2015-04-05
@xmoonlight

PHP script:

set_time_limit(600);
passthru('/usr/bin/mysqldump -hdomain.com -uusername -ppassword db_name>'+date("Y-m-d_H-i-s")+'.sql');

S
Sergey, 2015-04-05
@butteff

Do you have access to the console via ssh?
Do you know the database superuser password?

mysqldump -uroot -p databasename > databasename.sql

Y
Yuri Tatarkin, 2015-04-05
@tomasoyer

modx.com/extras/package/databackup has this snippet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question