After installation of mysql community server in Fedora 36
(by the command “dnf install community-mysql-server”), the mysqld.service doesn’t start.
The command “systemctl start mysqld.service” exit with failure
Some tips about?
systemctl status mysqld
should provide additional information
Use journalctl -u mysqld
to get the full mysqld logs. Generally, you first run sudo -u mysql mysql_install_db
before starting the service. If you ran this as root or some other user you may need to chown -R mysql:mysql /var/lib/mysql
and /var/log/mysql
. Once you get it started, I strongly suggest you run mysql_secure_installation
.
2 Likes