There are two methods, one is source installation, and the other is RPM installation. Mainly the latter:
First Check if it is installed, and the-I option of grep indicates that the case is ignored when matching . Rpm-qa|grep-i MySQL. The uninstallation that will be detected. rpm-e mysql-libs-5.1.61-4.el6.x86_64--nodeps (represents ignoring dependencies)
-
Install the server-side software for MySQL, and note the switch to the root user.  RPM-IVH mysql-server-5.5.29-1.rhel5.i386.rpm. installation When finished, the installation process adds a MySQL group to Linux and MySQL for users who belong to the MySQL group. Can be viewed through the ID command.
-
My After the SQL Server installation, although the relevant files are configured, but do not automatically start the MYSQLD service, you need to start: service MySQL start.netstat-anp|grep 3306 is used to detect whether it is started.
< Span style= "Color:rgb (51,51,51); Font-family:arial;font-size:14px;line-height:26px;background-color:rgb ( 255,255,255); " > Install the client software. Some are installed at the end of the installation service.
< Span style= "Color:rgb (51,51,51); Font-family:arial;font-size:14px;line-height:26px;background-color:rgb ( 255,255,255); " >
Relative to the RPM installation, the source code installation will be much more complex, temporarily regardless.
Summary: Delete the installed MySQL-related programs, then install the server-side and install the client first.
Installing MySQL in a Linux environment