Human nature is repetition, as a non-professional to learn linux linux is the best way to repeat
Environmental centos6.5
Version 5.7
1: detecting whether the system comes to install mysql
Check the library:
1 |
yum list installed | grep mysql |
2: Remove the system comes with mysql and its dependencies command:
1 |
yum -y remove mysql-libs.x86_64 |
3: to add CentOS rpm source, and choose the newer source command, executed one by one, enter y enter the place to note:
1 |
wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm |
ps If the error
-bash: yum-config-manager: command not found
Command library has not installed, run: yum install yum-utils
subsequent question mark knock y
4: Package is just great to start installing mysql server command:
1 |
> yum install mysql-community- |
5: Start the mysql command:
1 |
> service mysqld start |
6: Check whether mysql from the start, and set to open from the start command:
1 |
> chkconfig |
7: mysql Security Set command:
1 |
mysql_secure_installation |
If this step to enter the password you enter an empty but you can not get to continue to enter the following command:
1 |
-Service mysqld STOP |
Installed a success. . Give encouragement Well ~