Plesk 12.5 auf Ubuntu 14.04: „Unable to connect to database: mysql_connect(): No such file or directory (Error code: )“

Refers to:

  • Plesk 12.5 for Linux

Created:

2016-11-16 13:05:29 UTC

Modified:

2016-12-21 19:56:02 UTC

0

Was this article helpful?


Have more questions?

Anfrage einreichen

Plesk 12.5 auf Ubuntu 14.04: „Unable to connect to database: mysql_connect(): No such file or directory (Error code: )“

Kennzeichen

  1. MySQL kann nicht starten, nachdem Plesk installiert und der Server neu gestartet wurde:

    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'(2) exit status 1
  2. In der Datei /var/log/mysql/error.log erscheint folgender Fehler:

    InnoDB: Unable to lock ./ibdata1, error: 11
    InnoDB: Check that you do not already have another mysqld process
    InnoDB: using the same InnoDB data or log files.
    150902 10:33:16 InnoDB: Unable to open the first data file
    InnoDB: Error in opening ./ibdata1
    150902 10:33:16 InnoDB: Operating system error number 11 in a file operation.
    InnoDB: Error number 11 means 'Resource temporarily unavailable'.
    InnoDB: Some operating system error numbers are described at
    InnoDB: http://dev.mysql.com/doc/refman/5.5/en/operating-system-error-codes.html
    150902 10:33:16 InnoDB: Could not open or create data files.
    150902 10:33:16 InnoDB: If you tried to add new data files, and it failed here,
    150902 10:33:16 InnoDB: you should now edit innodb_data_file_path in my.cnf back
    150902 10:33:16 InnoDB: to what it was, and remove the new ibdata files InnoDB created
    150902 10:33:16 InnoDB: in this failed attempt. InnoDB only wrote those files full of
    150902 10:33:16 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
    150902 10:33:16 InnoDB: remove old data files which contain your precious data!
    150902 10:33:16 [ERROR] Plugin 'InnoDB' init function returned error.
    150902 10:33:16 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    150902 10:33:16 [ERROR] Unknown/unsupported storage engine: InnoDB
    150902 10:33:16 [ERROR] Aborting

Ursache

Softwareproblem mit der ID #PPPM-3284 ; ein entsprechender Patch soll in eines der nächsten Plesk Updates eingeschlossen werden.

Umgehungslösung

Entfernen Sie MySQL vom init-Skript:

    # mv /etc/init/mysql.conf /etc/init/mysql.conf.off
Haben Sie Fragen? Anfrage einreichen
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.