mysql は 5 回の試行後に EAGAIN で失敗しました。

mysql は 5 回の試行後に EAGAIN で失敗しました。エラーが発生しました。

2020-09-23T19:50:17.468993Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this opved in a future release.
2020-09-23T19:50:17.469099Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.17) initializing of server in progress as process 40
2020-09-23T19:50:17.578377Z 1 [Warning] [MY-012582] [InnoDB] io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
2020-09-23T19:50:17.622065Z 1 [Warning] [MY-012583] [InnoDB] io_setup() attempt 1.
2020-09-23T19:50:18.122210Z 1 [Warning] [MY-012583] [InnoDB] io_setup() attempt 2.
2020-09-23T19:50:18.622360Z 1 [Warning] [MY-012583] [InnoDB] io_setup() attempt 3.
2020-09-23T19:50:19.122499Z 1 [Warning] [MY-012583] [InnoDB] io_setup() attempt 4.
2020-09-23T19:50:19.622673Z 1 [Warning] [MY-012583] [InnoDB] io_setup() attempt 5.
2020-09-23T19:50:20.122838Z 1 [ERROR] [MY-012584] [InnoDB] io_setup() failed with EAGAIN after 5 attempts.
2020-09-23T19:50:20.122867Z 1 [ERROR] [MY-012954] [InnoDB] Cannot initialize AIO sub-system
2020-09-23T19:50:20.122892Z 1 [ERROR] [MY-012929] [InnoDB] InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before tryi
2020-09-23T19:50:20.123066Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2020-09-23T19:50:20.123078Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2020-09-23T19:50:20.123280Z 0 [ERROR] [MY-010119] [Server] Aborting
......

分析理由:
メモリが不足しているため、メモリを増やすことはできますが、良い解決策ではありません。

最終的な解決策:次の設定をmy.cnf
に追加します。

[mysqld]
innodb_use_native_aio=0

おすすめ

転載: blog.csdn.net/qq_33191599/article/details/108766774