Probleme beim Starten des MySQL-Servers

813
Vineeth

Ich versuche, den MySQL-Server auf Fedora 12 zu starten. Es service mysqld startwird ein Fehler angezeigt :

MySQL Daemon failed to start. Starting MySQL: [FAILED] 

Mehr Details

[root@localhost mysql]# which mysql /usr/bin/mysql   [root@localhost mysql]# mysql --version mysql Ver 14.14 Distrib 5.1.46, for redhat-linux-gnu (x86_64) using readline 5.1 

Was mache ich falsch?

Außerdem bekomme ich im Benachrichtigungsbereich einen seltsamen Pop bezüglich einiger Sicherheitsbedrohungen

SELINUX is preventing /usr/libexec/mysqld "read" access on plugin.frm

1

2 Antworten auf die Frage

2
Richard Fearn

Looks like SELinux is preventing MySQL from reading the database files. Try:

restorecon -rF /var/lib/mysql 

which will ensure the contexts are set properly on the database files.

Also have a look in /var/log/mysqld.log to see if there are any useful messages.

1
BloodPhilia

In addition to Richard Fearn's answer, which correctly diagnoses the problem (+1 for that), the following:

If it is a server/development environment, you might consider disabling SELinux entirely, since it's more of a burden than it does good. On a normal desktop, I'd recommend against doing that though.

I suggest you read the following carefully if you're thinking about disabling it.: http://www.crypt.gen.nz/selinux/disable_selinux.html