linux 初始化mysql的异常

#出现这个错误是因为 libaio 异步非阻库没有正确安装

[root@166087 mysql]# scripts/mysql_install_db --user=mysql
Installing MySQL system tables…/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

#安装
[root@166087 mysql]# yum -y install libaio* libaio-dev*

#可以了
[root@166087 mysql]# scripts/mysql_install_db --user=mysql
Installing MySQL system tables…2015-11-15 21:54:08 0 [Warning] ‘ERROR_FOR_DIVISION_BY_ZERO’ is deprecated and will be removed in a future release.
2015-11-15 21:54:08 0 [Warning] ‘NO_ZERO_DATE’ is deprecated and will be removed in a future release.
2015-11-15 21:54:08 0 [Warning] ‘NO_ZERO_IN_DATE’ is deprecated and will be removed in a future release.
2015-11-15 21:54:08 0 [Note] ./bin/mysqld (mysqld 5.6.27-log) starting as process 15473 …
OK

你可能感兴趣的:(Linux)