Linux Force uninstall mysql, linux Force mysql
In the case that MySQL cannot be installed in Linux already exists, we can force uninstall it before installing it. steps:
1. Find the installed myslq version:
# Rpm-q mysql
The installed mysql package name, such as: mysql-5.0.77-4.el5_5.3, is displayed on the screen
If the command prompts that mysql is not installed and you are sure that it is installed, run the following command to try:
# Rpm-qa | grep-I mysql
MySQL-server-5.5.11-1.rhel5
2. force uninstall (the full name of mysql that is queried above must include the version number. In this case, the unmount operation cannot be performed normally. Force Uninstall. The parameter -- nodeps must be used ):
# Rpm-e -- nodeps mysql-5.0.77-4.el5_5.3
3. The system does not prompt any information. Next, install MySQL:
# Rpm-ivh MySQL-server-5.5.9-1.linux2.6.i386.rpm
4. After the installation is complete, you will be prompted not to forget the password of the root user and other information: