环境:centos6.8
Mysql-5.7.13
本人代码中的path即为本人mysql目录=/application/mysql
本人是初学者,参照书上安装方式,二进制安装,即解压以后初始化mysql即可以完成安装
groupadd mysql
useradd mysql -s /sbin/nologin -g mysql -M
tar -xf mysql-5.7.13-linux-glibc2.5-x86_64.tar.gz
cd mysql-5.7.13-linux-glibc2.5-x86_64
mv mysql-5.7.13-linux-glibc2.5-x86_64.tar /application/mysql-5.7.13
ln -s /application/mysql-5.7.13 /application/mysql
/bin/cp /application/mysql/support-files/my-default.cnf /etc/my.cnf
mkdir /application/mysql/data
/application/mysql/bin/mysql_install_db --datadir=/application/mysql/data --basedir=/application/mysql --user=mysql
报错一:
[WARNING] mysql_install_db is