Installing MySQL in a Linux environment

Source: Internet
Author: User

There are two methods, one is source installation, and the other is RPM installation. Mainly the latter:

  1. 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)

  2. 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.

  3. 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.

  4. < 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.