Ubuntu 14.04 上の Plesk 12.5:"Unable to connect to database: mysql_connect(): No such file or directory (Error code: )"

Created:

2016-11-16 13:05:29 UTC

Modified:

2017-08-16 17:31:30 UTC

2

Was this article helpful?


Have more questions?

リクエストを送信

Ubuntu 14.04 上の Plesk 12.5:"Unable to connect to database: mysql_connect(): No such file or directory (Error code: )"

Applicable to:

  • Plesk 12.5 for Linux

症状

  1. Plesk をインストールし、サーバを再起動しても、MySQL が起動できません。

    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'(2) exit status 1
  2. /var/log/mysql/error.log ファイルに以下のエラーが記述されています。

    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.
    InnoDB: Unable to open the first data file
    InnoDB: Error in opening ./ibdata1
    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
    InnoDB: Could not open or create data files.
    InnoDB: If you tried to add new data files, and it failed here,
    InnoDB: you should now edit innodb_data_file_path in my.cnf back
    InnoDB: to what it was, and remove the new ibdata files InnoDB created
    InnoDB: in this failed attempt. InnoDB only wrote those files full of
    InnoDB: zeros, but did not yet use them in any way. But be careful: do not
    InnoDB: remove old data files which contain your precious data!
    [ERROR] Plugin 'InnoDB' init function returned error.
    [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    [ERROR] Unknown/unsupported storage engine: InnoDB
    [ERROR] Aborting

原因

これは Plesk 内部のソフトウェアの問題であり、ID #PPPM-3284 が割り振られています。この問題は Plesk 12.5 MU #5 で修正されました。

解決策

最新のマイクロアップデートを適用してください。

# plesk installer --select-release-current --reinstall-patch --install-component base
他にご質問がございましたら、リクエストを送信してください
ログインしてコメントを残してください。