• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Problem with mariadb

FindYanot

New Pleskian
Hello all, i have a problem with maria db.
System: Centos 7 64

After DDOS attack, maria db does not start.
I reboot server and i got this error:

I tried "service mariadb restart"

Code:
May 10 18:05:39 hostname mariadb-prepare-db-dir[5195]: rm: cannot remove ‘/var/lib/mysql/domains/hostname/.discovered/backup_info_1704060007’: Permission denied
May 10 18:05:39 hostname mariadb-prepare-db-dir[5195]: rm: cannot remove ‘/var/lib/mysql/domains/hostname/.discovered/backup_info_1704070007’: Permission denied
May 10 18:05:39 hostname mariadb-prepare-db-dir[5195]: rm: cannot remove ‘/var/lib/mysql/domains/hostname/.discovered/backup_info_1703290007’: Permission denied
May 10 18:05:39 hostname mariadb-prepare-db-dir[5195]: rm: cannot remove ‘/var/lib/mysql/mysql.daily.dump.0.gz’: Permission denied
May 10 18:05:39 hostname mariadb-prepare-db-dir[5195]: rm: cannot remove ‘/var/lib/mysql/mysql.daily.dump.1.gz’: Permission denied
May 10 18:05:39 hostname mariadb-prepare-db-dir[5195]: rm: cannot remove ‘/var/lib/mysql/mysql.daily.dump.2.gz’: Permission denied
May 10 18:05:39 hostname systemd[1]: mariadb.service: control process exited, code=exited status=1
May 10 18:05:39 hostname systemd[1]: Failed to start MariaDB database server.
May 10 18:05:39 hostname systemd[1]: Unit mariadb.service entered failed state.
May 10 18:05:39 hostname systemd[1]: mariadb.service failed.

Server domain changed to "hostname".

How to fix it?
 
Last edited:
Hi FindYanot,

pls. make sure, that you add the corresponding VERSION, if you desire help for a third party software, which is supported by Plesk and the very first information should be always the output if the command "plesk version" ( logged in as user "root" over SSH ).


In some cases, the Plesk REPAIR UTILITY can help to solve issues ( => Plesk Repair Utility )

Example command:
Code:
plesk repair db -y -v
... where the option string "-y" can be as well replaced with "-n" to do a so called "dry-run", without any repairs. ;)
 
Back
Top