mysql_install_db is deprecated. Please consider switching to mysqld --initialize

解决:

需要使用mysqld来初始化

./mysqld --initialize --datadir=/usr/local/mysql-cluster/data --user=mysql --basedir=/usr/local/mysql-cluster

在安装mysql时遇到以下错误

执行./mysqld --initialize 后

./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

原因是没有安装libaio.so.1,安装即可。

Ubuntu下执行:

    apt-get install libaio1 libaio-dev

Redhat/Fedora/CentOS下执行:

    yum install libaio
 

你可能感兴趣的:(MySQL)