Unable to start mysqld service
Issue
Can not start mysqld. Getting below errors:
$ more /etc/my.cnf.d/mysql-server.cnf | grep -i datadir
datadir=/var/lib/mysql
$ more var/log/mysql/mysqld.log
2021-03-30T12:34:10.200548Z 0 [System] [MY-010116] [Server] /usr/libexec/mysqld (mysqld 8.0.21) starting as process 2687
2021-03-30T12:34:10.223948Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.
2021-03-30T12:34:10.224106Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2021-03-30T12:34:10.224164Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-03-30T12:34:10.224569Z 0 [System] [MY-010910] [Server] /usr/libexec/mysqld: Shutdown complete (mysqld 8.0.21) Source distribution.
Environment
- Red Hat Enterprise Linux (RHEL) 8
- mysql
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.