1. Uninstall system comes with MYSQ (this step is not ignored)
[[email protected] ~]$ rpm-qa|grep MySQL
Mysql-community-common-5.7.19-1.el6.x86_64
RPM-E--nodeps mysql-community-common-5.7.19-1.el6.x86_64
2. Download the Unzip installation package
[Email protected] apps]$ wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.23-linux-glibc2.12-x86_64.tar.gz
[Email protected] apps]$ TAR-ZXVF mysql-5.7.23-linux-glibc2.12-x86_64
3. Modify the configuration file
[Email protected] apps]$ CD mysql-5.7.23-linux-glibc2.12-x86_64/support-files/
[Email protected] support-files]$ VI mysql.server
4. Installation
[email protected] support-files]$ sudo cp mysql.server/etc/init.d/mysqld
[Email protected] support-files]$ CD. /bin/
[Email protected] bin]$/mysqld--user=mysql--basedir=/home/admin/apps/mysql-5.7.23-linux-glibc2.12-x86_64-- Datadir=/home/admin/data/mysql/data--initialize
This step may have an error:/bin/mysqld:error while loading shared Libraries:libaio.so.1:cannot open Shared object file:
Solution: sudo yum remove Libnuma.1
sudo yum-y install numactl. x86_64
Yum Install-y Libaio
5. Start the MySQL service
[[Email protected] bin]$ service mysqld start
6. Log in to change the root password
7. Uninstall
Centos6.5 installation mysql-5.7.23