This article mainly introduces the simple method of installing MySQL under Linux. Friends who need it can refer to it.
When searching on the Internet for how to install MySQL under Linux, many methods appeared, but there are many methods. It's very complicated, and it may not be successful. After trying it for a long time, I finally found a simple method. Let's talk about how I installed it
1. Prepare the installation package
(1)mysql-client-5.5.8-1.rhel5.x86_64.rpm
(2)MySQL-devel-5.5.8-1.rhel5.x86_64.rpm
(3)MySQL-server-5.5.8-1.rhel5.x86_64.rpm
2. Upload the downloaded installation package to linux
3. Install the three installation packages of mysql
rpm -ivh MySQL-server-5.5.8-1.rhel5.x86_64.rpm --nodeps --force rpm -ivh MySQL-devel-5.5.8-1.rhel5.x86_64.rpm --nodeps --force rpm -ivh MySQL-client-5.5.8-1.rhel5.x86_64.rpm --nodeps --force
Add -nodeps -force to avoid being affected by dependencies
4Start mysql
service mysql start
Now you can use mysql
Summary
The above is the detailed content of The simplest installation method for MySQL under Linux. For more information, please follow other related articles on the PHP Chinese website!