Home >Database >Mysql Tutorial >What to do if the mysql installation path conflicts under Linux
Solution to the mysql installation path conflict under Linux: First find all mysql installed in the system; then forcefully delete the list one by one, the code is [rpm -f /etc/my.cnf]; Finally, install the related mysql software.
Related free learning recommendations: mysql database( Video)
Solution to the mysql installation path conflict under Linux:
Since a lower version has been installed on the Linux server used version of mysql server, when installing using the rpm package, a version conflict is prompted and the installation cannot continue.
Since the old data is no longer wanted, the solution is as follows:
1. First find out all mysql installed in the system
#rpm -qa|grap -i mysql After running this command, display all lists
mysql-4.1.20-1.RHEL4.1
mysqlclient10-3.23.58-4.RHEL4.1
2. Forcefully delete the list one by one:
#rpm -ev --nodeps mysql-4.1.20-1.RHEL4.1
#rpm -ev --nodeps mysqlclient10-3.23 .58-4.RHEL4.1
Manually delete several files of the old version:
#rpm -f /etc/my.cnf
#rpm -rf /usr/var/lib/mysql
Now you can perform a new installation of mysql, the required software packages:
3 Software to be installed
MySQL-client-5.0. 22-0.i386.rpm MySQL client software
MySQL-server-5.0.22-0.i386.rpm MySQL server software
rpm -ivh MySQL-client-5.0.22- 0.i386.rpm
rpm -ivh MySQL-server-5.0.22-0.i386.rpm
The above is the detailed content of What to do if the mysql installation path conflicts under Linux. For more information, please follow other related articles on the PHP Chinese website!