Because a lot of the time when the installation of the program mysql5.0 completely not to force, so we want to upgrade MySQL to 5.5, after all, since the 5.0 version!
1. Update Yum Source
The code is as follows |
Copy Code |
RPM-UVH http://repo.webtatic.com/yum/centos/5/latest.rpm |
2. Install Yum support
The code is as follows |
Copy Code |
Yum Install libmysqlclient15--enablerepo=webtatic |
3. Stop MySQL Service
The code is as follows |
Copy Code |
Service Mysqld Stop
|
4. Uninstall the old version of MySQL
The code is as follows |
Copy Code |
Yum Remove MySQL mysql-*
|
5. Install a new version of MySQL
The code is as follows |
Copy Code |
Yum Install mysql55 mysql55-server--enablerepo=webtatic
|
Single mode to start MySQL (this step, optional!) )
The code is as follows |
Copy Code |
Mysqld_safe--skip_grant_tables
|
6. Upgrade MySQL
The code is as follows |
Copy Code |
Mysql_upgrade
|
7. Restart MySQL Database
The code is as follows |
Copy Code |
Service mysqld Restart
|
You can then complete the upgrade operation