Sister's, engaged for several days MySQL, manual installation is not successful, always have a variety of errors, original AH found that the version is not correct, so Linux installation software must be optimistic version.
1. Unzip the downloaded tar file first
Tar xvf Mysql-5.6.21-1.el6.x86_64.rpm-bundle.tar
2.RPM-IVH command to install
RPM-IVH mysql-devel-5.6.21-1. el6.x86_64.rpm -ivh mysql-server-5.6.21-1. el6.x86_64.rpm -IVH mysql-client-5.6.21-1.el6.x86_64.rpm
After installation, MySQL automatically generates a random password that can be modified in the following ways
3. Change the MySQL default password
-uroot-psuijimimaset password=password (' 123 '); flush privileges;
4. Modify MySQL remote login
GRANT all privileges on * * to ' root ' @ '% ' identified by ' 123 ' with GRANT OPTION;
OK, the installation of MySQL to this RPM is complete, the next step is to modify the data location
How to install the RPM installation of MySQL under CentOS