A solution to MySQL version conflict in Linux
Zookeeper
The following error occurs when installing the MySQL service:
The version to be installed is 5.1.45, and 5.0.22 has been installed before:
MySQL conflicts withmysql-5.0.22-2.1.0.1.i386
MySQL-server conflicts with mysql-server-5.0.22-2.1.0.1.i386
UseRpm-e-nodeps mysql-5.0.22-2.1.0.1,Delete a previous version, if the mysql-server-5.0.22-2.1.0.1.i386 is not deleted, a version conflict is still prompted, for example, you can use the same command to delete the mysql-server-5.0.22-2.1.0.1.i386 to install, such:
After the MySQL service is installed, the service is automatically enabled by default.Ps-ef | grep mysqlCommand to see that the process proves that the service has been started, useRpm-qa | grep MySQL (case sensitive)You can see the installed package, such:
Install the client as follows:
After installation, input mysql to output the above information to prove that the installation is successful.