Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Dump MySQL DB in a plesk server with MySQL root password  (Read 2710 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Dump MySQL DB in a plesk server with MySQL root password
« on: December 14, 2013, 06:49:22 am »
1). Below command will show you the mysql root user password in a Plesk server.

Quote
mysql -uadmin -p'cat /etc/psa/.psa.shadow'


2). So to dump a db just use the normal mysql dump command along with the above one

Quote
mysqldump -uadmin -p'cat /etc/psa/.psa.shadow' database_name > database_name.sql
« Last Edit: December 14, 2013, 06:51:13 am by Vinil »