LoginSignup
2
0

More than 1 year has passed since last update.

【MySQL】[ERROR] [MY-012585] [InnoDB] Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.解消法【Docker】

Last updated at Posted at 2022-07-04

状況

M1Macを使用してDockerでMySQLのコンテナを起動した際に以下のようなエラーが発生しました。

ターミナル
[ERROR] [MY-012585] [InnoDB] Linux Native AIO interface is not supported on this platform.
 Please check your OS documentation and install appropriate binary of InnoDB.

エラーの内容は以下のとおりです。

Linux Native AIOインターフェースは、このプラットフォームではサポートされていません。
OS のドキュメントを確認し、適切な InnoDB のバイナリをインストールしてください。

解消法

Linux の非同期 I/O サブシステムを使用しないように設定することで解消できます。

具体的にはmy.cnfdocker-compose.ymlに以下を追記します。

my.cnf
innodb_use_native_aio=0
docker-compose.yml
services:
  db:
    command: mysqld --innodb_use_native_aio=0

ただし、OS の非同期 I/O サブシステムに問題があるために InnoDB を起動できない場合は、innodb_use_native_aio=0 を使用してサーバーを起動できます。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0