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