Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
cPanel, WHM and CloudLinux Technical Guide

cPanel MySQL Service Is Down: MariaDB Not Starting Error Solution

If the MySQL or MariaDB service is down, WordPress, e-commerce, and all dynamic websites cannot access the database. This guide safely diagnoses service, disk, permissions, socket, my.cnf, InnoDB, and Aria errors without deleting data files.

MariaDB failedrestartsrv_mysqlInnoDBAriaSocket / Port 3306
root@server:~SSH
The “mysql” service appears to be down.
Failed to start MariaDB database server.
InnoDB: Unable to lock ./ibdata1 error: 11
Can't connect to local server through socket '/var/lib/mysql/mysql.sock'
First, data securityData files are not deleted or renamed.
Main evidenceMariaDB Error Log and Journal Entries
Common causeDisk, inode, permissions, and file ownership
Connection layerSocket, port 3306, and service PID
01
Technical description

What does 'The mysql service appears to be down' mean in cPanel?

Chkservd or cPanel service manager MariaDB detects when it is not running or not responding to health checks. Sometimes the service is really down; sometimes MariaDB appears to be down due to socket, connection, or monitoring method.

The actual reason for the service start error is usually not the last line in the systemctl output, but the first critical record in the MariaDB error log. The log should be read from the beginning of the boot and the first error should be found.

Errcode 28, no space left on device or temporary file creation failure indicates disk space or inode depletion. In this case, instead of changing the MariaDB setting, the file system's fullness should be resolved.

InnoDB corruption, checksum mismatch, or page corruption messages indicate data integrity risk. The ibdata1, ib_logfile, redo log, or table files should not be deleted without taking a server backup.

A MySQL socket error does not always mean the database is closed. The socket path expected by the client may differ from the one created by MariaDB, or an old PID/socket file may remain.

The diagnostic commands on this page do not modify data files. InnoDB force recovery, table repair, and file transfer operations should only be performed with a current backup and recovery plan.

02
Log messages and their meanings

MySQL, MariaDB, InnoDB, and Aria error messages

Search for the phrase you see in the email, browser, or SSH log. Each card includes meaning, probable cause, and safe initial action.

12 registration
01kritik

The “mysql” service appears to be down

Meaning: cPanel health check failed to verify MySQL/MariaDB service is running.

Possible cause: Service is closed, not responding, socket is different, disk is full or chkservd connection failed.

systemctl status mariadb and verify the actual service status with the error log.
02kritik

Failed to start MariaDB database server

Meaning: The systemd startup process has not been completed successfully.

Possible cause: my.cnf error, permission, port conflict, disk, InnoDB/Aria recovery or corrupted package.

Find the first ERROR line in the journalctl and MariaDB error log.
03kritik

The subprocess restartsrv_mysql reported error number 2

Meaning: cPanel restart script service has failed to come up; 2 root causes are not.

Possible cause: The actual error is found in the service start log.

Check the mariadb service with journalctl -u mariadb -n 150 and the error log.
04kritik

InnoDB: Unable to lock ./ibdata1 error: 11

Meaning: The InnoDB system tablespace appears to be locked by another process.

Possible cause: The second MariaDB process, for a half-started or old process.

Verify that there are multiple mysqld/mariadbd processes; do not delete the ibdata1 file.
05kritik

InnoDB: page corruption or checksum mismatch

Meaning: InnoDB data page integrity breach detected.

Possible cause: Disk issue, sudden power failure, hardware/RAM error, or corrupted page.

Take a backup, check the disk, and prepare a controlled recovery plan.
06kritik

Can't connect to local server through socket

Meaning: Client could not connect to the expected Unix socket file.

Possible cause: Service is down, socket path is different, socket does not exist, or permission issue.

verify the actual socket/port setting with my_print_defaults and ss.
07kritik

Can't create/write to file Errcode: 28

Meaning: MariaDB cannot write to temporary or permanent files.

Possible cause: Disk space or inode 100%, /tmp is full or quota limit.

Check df -hT, df -i, and /tmp usage.
08kritik

Permission denied /var/lib/mysql

Meaning: Cannot access the file in the MariaDB data directory.

Possible cause: Incorrect mysql:mysql ownership, SELinux context, permissions, or corruption after transfer.

Check file ownership and context; do not randomly chmod 777 entire directory
09kritik

unknown variable or option in my.cnf

Meaning: There is an unknown configuration parameter for the MariaDB version.

Possible cause: Upgrade, syntax error or old MySQL parameter.

find the parameter name in my_print_defaults and journal; take a backup of my.cnf.
10kritik

Address already in use port 3306

Meaning: Indicates the port MariaDB wants to listen on is being used by another process.

Possible cause: Second MySQL instance, Docker/proxy or wrong service.

Verify the PID using ss -lntp.
11warning

Aria recovery failed or aria_log_control error

Meaning: Aria storage engine cannot open or retrieve logs.

Possible cause: Sudden shutdown, permission, disk fullness, or corrupted Aria logs

Backup and identify the table and file names in the error log; do not delete randomly.
12warning

MariaDB is running but cPanel is showing down.

Meaning: chkServD control may not be able to connect while the database process is running.

Possible cause: Socket path, password/health check, MySQL Governor, or due to heavy load, timeout.

Compare mysqladmin ping and cPanel service logs.

No records matching this expression were found.

03
Secure first review

SSH diagnostic commands and what output to look for?

Commands are for root access. Collect only status and logs first; Do not change the permanent setting without seeing the reason.

service status
systemctl status mariadb -l --no-pager
/usr/local/cpanel/scripts/restartsrv_mysql --status

MariaDB and cPanel service control shows the situation together.

Systemd log
journalctl -u mariadb -n 200 --no-pager

Lists errors passed to systemd during startup and shutdown.

MariaDB error log
ls -lah /var/lib/mysql/*.err 2>/dev/null
tail -n 200 /var/lib/mysql/*.err 2>/dev/null

InnoDB, Aria, permission, and configuration errors are the primary source.

Shows active configuration.
my_print_defaults mysqld
mysqld --verbose --help 2>/dev/null | head -n 30

Displays the loaded my.cnf options and binary information.

Disk and Inode
df -hT
df -ih
du -sh /var/lib/mysql /tmp 2>/dev/null

Errcode 28, temp file and write issues verify the file system side.

Socket and port
ss -lntp | grep ':3306'
ss -lxnp | grep -E 'mysql|maria'
find /run /var/lib/mysql -maxdepth 2 -type s -name '*mysql*.sock' -ls 2>/dev/null

Shows whether MariaDB is listening on a port or Unix socket.

Database processes
ps auxf | grep -E '[m]ariadbd|[m]ysqld'
mysqladmin ping 2>&1
mysqladmin processlist 2>&1 | head -n 80

Dual process, service response, and stuck queries checking.

Kernel and OOM logs
journalctl -k --since '2 hours ago' | grep -Ei 'oom|killed process|I/O error|ext4|xfs|nvme|sda'

Determines whether MariaDB has closed due to OOM or disk I/O error.

04
Safe solution order

Steps to recover MariaDB service without data loss

Validation of service status, finding the first critical log, separating the file system and configuration, safe restart, and data integrity check.

1

Gather evidence without restarting the service repeatedly.

Get status, journal, and error log output. Frequent restarts may lose the first error line in log rotation.

systemctl status mariadb -l --no-pager journalctl -u mariadb -n 200 --no-pager tail -n 200 /var/lib/mysql/*.err
2

Check disk, inode, and write permissions

If disk or inode is full, first create a safe space. Determine why /var/lib/mysql ownership and SELinux context have changed.

df -hT df -ih namei -l /var/lib/mysql
3

separate my.cnf error

If there is an unknown variable or syntax error, back up the file and correct only the problematic parameter. Resetting the entire configuration may lose performance settings.

cp -av /etc/my.cnf /root/my.cnf.yedek-$(date +%F-%H%M) my_print_defaults mysqld
4

Resolve dual process and port conflicts

Verify which PID is using 3306 and the number of active mariadbd. Do not randomly kill the production process.

ss -lntp | grep ':3306' ps auxf | grep -E '[m]ariadbd|[m]ysqld'
5

Reboot controlled by the cPanel script

After removing the root cause, use the cPanel service script and immediately inspect the new error log lines.

/usr/local/cpanel/scripts/restartsrv_mysql sleep 5 systemctl status mariadb -l --no-pager
6

Verify data and application access

mysqladmin ping, a simple SQL query, critical sites, and new error logs must be checked before considering the operation complete.

mysqladmin ping mysql -NBe 'SELECT VERSION(), NOW();' tail -n 80 /var/lib/mysql/*.err
05
Distinction by symptom

Special scenarios and decision trees

Errcode 28 or No space left on device

Instead of deleting database files, find the full mount point. Log, backup, /tmp, and binary log usage should be examined separately.

df -hT
df -ih
du -xhd1 /var 2>/dev/null | sort -h | tail -n 20
ibdata1 appears to be locked.

Mostly another mariadbd process is still running. Do not delete ibdata1 or pid file without verifying the PID and process tree.

ps auxf | grep -E '[m]ariadbd|[m]ysqld'
lsof /var/lib/mysql/ibdata1 2>/dev/null
InnoDB corruption message exists

First, take a physical or snapshot backup. innodb_force_recovery is a temporary recovery tool for exporting data only; it is not a normal production mode.

grep -Ei 'corrupt|checksum|page.*error|crash' /var/lib/mysql/*.err | tail -n 100
There is a socket error but port 3306 is open.

TCP connection is looking at the wrong socket path while the client is running. The socket options in my.cnf should match in both the client and server sections.

my_print_defaults client mysql mysqld | grep -i socket
ss -lxnp | grep -E 'mysql|maria'
Service is running but very slow.

Chkservd timeout may occur due to intensity. Process list, slow query log, disk latency, and MySQL Governor should be examined together.

mysqladmin processlist
mysqladmin status
iostat -xz 1 5

Absolutely don't

  • Do not delete ibdata1, ib_logfile, redo log, or .ibd files using single-line commands found online.
  • Do not use innodb_force_recovery as a permanent production setting without taking a backup.
  • Do not apply chmod -R 777 to the /var/lib/mysql directory.
  • Do not kill a running mariadbd process with kill -9 without verifying its PID and process status.
  • Do not clean binary logs from the file system with random rm; use the MariaDB PURGE BINARY LOGS command.
  • Do not run uncontrolled REPAIR TABLE on all databases in case of suspected corrupted table; not suitable for InnoDB.

Post-solution verification

  • systemctl status mariadb is active/running.
  • The mysqladmin ping output is showing 'mysqld is alive'.
  • Port 3306 or the expected socket is being listened to by the correct PID.
  • There is no critical InnoDB, Aria, permission or disk error in the new error log lines.
  • cPanel service manager is viewing MySQL as UP.
  • WordPress, e-commerce and management panels are connecting to the database error-free.
06
Official technical resources

cPanel and manufacturer documentation

07
Internal SEO content set

Related cPanel and server error solutions

08
Frequently asked questions

MySQL Service Is Down Error Curiosities about

The mysql service appears to be down what does it mean?

cPanel reports that it could not pass the MySQL/MariaDB health check. The service might really be closed or appear closed due to socket, load, and monitoring method.

If MariaDB does not start, which log should be checked first?

First, examine journalctl -u mariadb and the .err file under /var/lib/mysql. The first critical ERROR line usually indicates the root cause.

Is deleting ibdata1 a solution?

No. ibdata1 is an InnoDB system tablespace and deleting it can lead to serious data loss; only an expert recovery plan and backup should be performed.

What does Errcode 28 MySQL error mean?

Usually indicates that disk space or inodes are running out. Check the mount point with df -h and df -i.

How to resolve the MySQL socket error?

First, check if the service is running, where the actual socket is, and the path the client is expecting. Client and server socket settings should be matched.

How do I safely restart the MariaDB service?

On the cPanel server, the /usr/local/cpanel/scripts/restartsrv_mysql command is preferred. Logs must be retrieved before restart and error log must be checked again afterwards.

is innodb_force_recovery permanent usable?

No. It is a temporary recovery mode for exporting data; it is not a permanent solution for write operations and normal production.

Why is cPanel saying MariaDB is down when it is running?

Chkservd cannot get response over socket or authentication, service may be timing out under heavy load or MySQL Governor layer may be affecting.

EKA SOFTWARE AND INFORMATION SYSTEMS

Let's fix the error on your server permanently

By analyzing cPanel, WHM, CloudLinux, LiteSpeed, MariaDB, Exim and security layers together, we fix the root cause of the failure instead of just removing the service.

Get Server Support WhatsApp
Top