Mysql databases deleted and also Wordpress wp-config.php files

postcd

Well-Known Member
Oct 22, 2010
717
19
68
Hello,

today i found one of my cpanel accounts 10 wordpress blogs stopped working, because their directories missing wp-config.php files, when i looked into cpanel, mysql section i found there are no databases and even no usernames.

Please can anyone suggest if its possible to discover why this happend? i dont think this account had simple password that is written anywhere on the internet.. thanks
 

postcd

Well-Known Member
Oct 22, 2010
717
19
68
Update:
Interesting is that from WHM when i click PHPMyAdmin i see all databases with tables there!
But when i access PHPMyadmin from that cPanel account i dont see any mysqls!
When i reupload backups of wp-config.php files, websites started workign, so databases are there, but not visible in that particular cpanel..
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello :)

Do you see any output in /usr/local/cpanel/logs/error_log when accessing the MySQL databases option within cPanel for that account?

Thank you.
 

postcd

Well-Known Member
Oct 22, 2010
717
19
68
the cpanel support solved this issue.
To resolve this, I used the Database Mapping Tool, in WHM >> SQL Services, to add these databases and the database user to the cPanel account. I then added the database user, recenze_user, to all the databases.
about "Database Mapping Tool":
"The Database Map Tool allows you to assign ownership of databases and database users to specific cPanel accounts. This ownership is retained in the internal mapping of databases to users and will allow management of the databases from within the owner’s cPanel interface."
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
I am happy to see the issue is now resolved. Thank you for updating us with the outcome.