./mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize
初始化数据库时出现如下错误
-bash: ./mysqld: cannot execute binary file
解决方法:
sudo yum install libncurses*
其余已试方法:
yum install -y libaio
./mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql/ --datadir=/data/mysql/ --user=mysql --initialize
初始化数据库时出现如下错误
-bash: ./mysqld: cannot execute binary file
解决方法:
sudo yum install libncurses*
其余已试方法:
yum install -y libaio