I installed mysql in linux6.2 for one day. I didn't expect it to take so long and it is related to my poor foundation. Now let's talk about the installation process. First, let's talk about the environment: rhel6.2 mysql5.1 in linux, a mysql-lib may have been installed by default, so we should first judge: rpm-qa | grep mysql if the command above cannot be found, you don't need to uninstall it. If it exists, You Need To uninstall it first, because this is not the rpm installation package, so I uninstalled it using yum: yum-y remove mysql * then you will see the uninstall process. After uninstalling, put the installation package you downloaded into the linux system, the installation package requires two, server and client, such as my MySQL-client-5.1.7-0.i386.rpm, MySQL-server-5.1.7-0.i386.rpm now start installation: rpm-ivh MySQL-server-5.1.7-0.i386.rpm if two 100% appears, the installation is successful. The rest is the start, but suddenly starting mysql error (which caused me to crash) I first thought of finding logs, but the log file was not created, crashed, and I kept searching online, after executing a command, everything is OK: mysqld_safe, after executing this command, it will be stuck there, and it will be done when a window is closed. Then in the execution:/etc/init. d/mysl start magic found success, and then in the installation of client rpm-ivh MySQL-client-5.1.7-0.i386.rpm if two 100% appears, it means the installation is successful. Run mysql. If you enter mysql, the installation is successful. The rest is to learn frequently used mysql commands.