Some time ago purchased the Aliyun host. Because you need to use the Java environment instead of Php+apache this one-button installation of things, so did not download the Aliyun official online said Sh.zip. Besides, there is no gzip in this decompression package. So be resolute to install the things you want.
the machine configuration purchased is:
Operating system: Red Hat Enterprise Linux Server 5.4 64 bits.
Cpu:1 Nuclear
Memory: 512M
Hard disk space: 20G
Bandwidth: 1Mbps.
The following three packages are required to install MySQL data:
mysql-server-5.5.32-1.rhel5.x86_64.rpm
mysql-devel-5.5.32-1.rhel5.x86_64.rpm
mysql-client-5.5.32-1.rhel5.x86_64.rpm
First, we can go through the Cd/home directory. Second, we need to download the three packages we need.
Since this host is named after the wget, we can download the three packages we need directly through the following three commands
[root@ay1306231301108721c5z home]# wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-server-5.5.32-1.rhel5.x86_64.rpm
[root@ay1306231301108721c5z home]# wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-devel-5.5.32-1.rhel5.x86_64.rpm
[root@ay1306231301108721c5z home]# wget http://cdn.mysql.com/Downloads/MySQL-5.5/MySQL-client-5.5.32-1.rhel5.x86_64.rpm
then start installing Mysql-server
Enter command:
RPM-IVH mysql-server-5.5.32-1.rhel5.x86_64.rpm
After a while, the console appears with the following prompts.
error:failed dependencies:
Libaio.so.1 () (64bit) is needed by mysql-server-5.5.32-1.rhel5.x86_64
Libaio.so.1 (libaio_0.1) (64bit) is needed by mysql-server-5.5.32-1.rhel5.x86_64
Libaio.so.1 (libaio_0.4) (64bit) is needed by mysql-server-5.5.32-1.rhel5.x86_64
This is because there is less of a library inside, I have tried to find a download on the Internet, and then there are a variety of problems. And then use a different approach to solve the problem.
By modifying Yum to implement a new dependency library download, enter the Rpm-qa|grep yum command. Display the results as follows
[root@ay1306231301108721c5z home]# Rpm-qa|grep Yum
Yum-3.2.22-20.el5
Yum-metadata-parser-1.1.2-3.el5
follow the steps below to download the package.
[root@ay1306231301108721c5z home]# Cd/etc/yum
Yum/yum.conf yum.repos.d/
[root@ay1306231301108721c5z home]# Cd/etc/yum
Yum/yum.conf yum.repos.d/
[root@ay1306231301108721c5z home]# cd/etc/yum.repos.d/
[root@ay1306231301108721c5z yum.repos.d]# ls
Epel.repo Epel-testing.repo Rhel-debuginfo.repo
[root@ay1306231301108721c5z yum.repos.d]# wget Http://www.linuxidc.com/files/2011/05/06/CentOS-Base.repo
After completing the download of this centos-base.repo. Enter Yum Makecache
A lot of information will appear, and the Yes action will be all the time. Oh, look at the results below
Installed:
Libaio.x86_64 0:0.3.106-5
complete!
You can install the top three packages, and return to the home directory first.
[root@ay1306231301108721c5z yum.repos.d]# cd/home/
[root@ay1306231301108721c5z home]# ls
glibc-2.16.0-8.ram1.x86_64.rpm mysql-client-5.5.32-1.rhel5.x86_64.rpm perl-dbd-mysql-4.022-1.el5.rfx.x86_64.rpm
libaio-0.3.105-2.x86_64.rpm mysql-devel-5.5.32-1.rhel5.x86_64.rpm perl-dbi-1.52-1.fc6.i386.rpm
libaio-0.3.107-10.el6.x86_64.rpm mysql-server-5.5.32-1.rhel5.x86_64.rpm rpm-4.9.1.3-6.fc17.i686.rpm
[root@ay1306231301108721c5z home]# RPM-IVH mysql-server-5.5.32-1.rhel5.x86_64.rpm
This place is loaded with mysql-server.
Continue installing the other two packages. As below.
[root@ay1306231301108721c5z yum.repos.d]# cd/home/
[root@ay1306231301108721c5z home]# ls
glibc-2.16.0-8.ram1.x86_64.rpm mysql-client-5.5.32-1.rhel5.x86_64.rpm perl-dbd-mysql-4.022-1.el5.rfx.x86_64.rpm
libaio-0.3.105-2.x86_64.rpm mysql-devel-5.5.32-1.rhel5.x86_64.rpm perl-dbi-1.52-1.fc6.i386.rpm
libaio-0.3.107-10.el6.x86_64.rpm mysql-server-5.5.32-1.rhel5.x86_64.rpm rpm-4.9.1.3-6.fc17.i686.rpm
[root@ay1306231301108721c5z home]# RPM-IVH mysql-server-5.5.32-1.rhel5.x86_64.rpm
You can start MySQL by loading three packages at this time.
[root@ay1306231301108721c5z home]# service MySQL start
Access to MySQL Management
[root@ay1306231301108721c5z home]# mysql-u Root
This is empty because the password is not set.
Just press ENTER.
And then you go in and start setting the password.
SET PASSWORD = PASSWORD (' hello ');
Note: The above hello is the password.
It's done. The rest of you are looking for information.