CentOS to install MySQL5.5 database in RPM mode (1/2)

Source: Internet
Author: User
Tags centos

Select Platform Oracle & Red Hat Linux 4 & 5


Download the following three files separately (since my machine is 32 bits, here is a 32-bit version of the package, if your machine is 64-bit, please download 64-bit version):

1. Red Hat & Oracle Linux 5 (x86, 32-bit), RPM Package
MySQL Server

2. Red Hat & Oracle Linux 5 (x86, 32-bit), RPM Package
Client Utilities

3. Red Hat & Oracle Linux 5 (x86, 32-bit), RPM Package
Development Libraries

Use the wget command to download these three files using a breakpoint transfer

The code is as follows Copy Code


Wget-c http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-server-5.5.28-1.rhel5.i386.rpm

Wget-c http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-client-5.5.28-1.rhel5.i386.rpm

Wget-c http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-devel-5.5.28-1.rhel5.i386.rpm

Start the installation after the download completes:

The code is as follows Copy Code
RPM-IVH mysql-server-5.5.28-1.rhel5.i386.rpm
RPM-IVH mysql-client-5.5.28-1.rhel5.i386.rpm
RPM-IVH mysql-devel-5.5.28-1.rhel5.i386.rpm

If there is an error during installation:

The code is as follows Copy Code

error:failed dependencies:

Libaio.so.1 () (64bit) is needed by mysql-server-5.5.28-1.rhel5.x86_64

Libaio.so.1 (libaio_0.1) (64bit) is needed by mysql-server-5.5.28-1.rhel5.x86_64

Libaio.so.1 (libaio_0.4) (64bit) is needed by mysql-server-5.5.28-1.rhel5.x86_64

is a dependency library is missing, you can install a dependent library

The code is as follows Copy Code
Yum Install Libaio

Tip After Setup completes, enter MySQL to see if the installation is successful

Mysql

If there is no response or the following error message appears:

ERROR 2002 (HY000): Can ' t connect to the local MySQL server through socket '/var/lib/mysql/mysql.sock ' (2)

Description MySQL service has not started, enter service MySQL start start MySQL service

Service MySQL Start

Then enter MySQL, if the following prompts the message, indicating success.

Welcome to the MySQL Monitor. Commands End With; or G.
Your MySQL Connection ID is 1
Server version:5.5.16 MySQL Community Server (GPL)

Copyright (c), the Oracle and/or its affiliates. All rights reserved.

Oracle-A Registered www.111cn.net trademark Oracle Corporation and/or its
Affiliates. Names may trademarks of their respective
Owners.

Type ' help, ' or ' h ' for help. Type ' C ' to clear the current input statement.

If an error occurs

Starting MySQL .... error! The server quit without updating PID file (/var/lib/mysql/lechiexxxxx.pid).

View log files based on error address

The address here is/var/lib/mysql/.

The log name is typically the server name. err

home 1 2 last
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.