Home  >  Article  >  Database  >  The simplest installation method for MySQL under Linux

The simplest installation method for MySQL under Linux

黄舟
黄舟Original
2017-08-20 14:40:401495browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn