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

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
 

上一篇:CMD或Powershell访问FTP服务器,报PORT command successful. Consider using PASV.后无下文


下一篇:Consider defining a bean of type 'com.*.*.mapper.*.*Mapper' in your configuration.