Sou novato no Fedora e no MySQL. Eu acabei de instalar o Fedora 20 (virtual), então instalei o Apache e o iniciei e então instalei o MySQL. Quando tentei iniciar o MySQL usando este comando:
sudo service mysqld start
Eu entendo isso:
Redirecting to /bin/systemctl start mysqld.service
Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for details.
Eu procurei e encontrei outro comando para iniciar o MySQL:
systemctl start mysqld.service
Este segundo comando ecoa a mesma coisa. Como sugere, tentei:
systemctl status mariadb.service
Ele deu algumas informações:
mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled)
Active: failed (Result: exit-code) since Thu 2014-02-13 09:23:19 IRST; 13min ago
Process: 22189 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE)
Process: 22188 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=1/FAILURE)
Process: 22165 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 22188 (code=exited, status=1/FAILURE)
CGroup: /system.slice/mariadb.service
Feb 13 09:23:18 localhost.localdomain mariadb-prepare-db-dir[22165]: chmod: changing permissions of ‘/var/log/mariadb/mariadb.log’: Opera...mitted
Feb 13 09:23:18 localhost.localdomain mysqld_safe[22188]: 140213 09:23:18 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Feb 13 09:23:18 localhost.localdomain mysqld_safe[22188]: 140213 09:23:18 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Feb 13 09:23:18 localhost.localdomain mysqld_safe[22188]: /usr/bin/mysqld_safe: line 138: /var/log/mariadb/mariadb.log: Permission denied
Feb 13 09:23:18 localhost.localdomain mysqld_safe[22188]: /usr/bin/mysqld_safe: line 182: /var/log/mariadb/mariadb.log: Permission denied
Feb 13 09:23:18 localhost.localdomain mysqld_safe[22188]: 140213 09:23:18 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Feb 13 09:23:18 localhost.localdomain systemd[1]: mariadb.service: main process exited, code=exited, status=1/FAILURE
Feb 13 09:23:19 localhost.localdomain systemd[1]: mariadb.service: control process exited, code=exited status=1
Feb 13 09:23:19 localhost.localdomain systemd[1]: Failed to start MariaDB database server.
Feb 13 09:23:19 localhost.localdomain systemd[1]: Unit mariadb.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
Então, Failed to start MariaDB database server.
Eu não sei exatamente o que é o MariaDB, então li sobre algumas diferenças entre o MySQL e o MariaDB, mas isso não ajudou a resolver meu problema. Você pode por favor me dizer o que devo fazer?