Redhat 5.4 Install the MySQL whole process

Source: Internet
Author: User
Tags centos aliyun

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 by
is:





operating system: Red Hat Enterprise Linux Server 5.4 64 bits.





Cpu:1 Nuclear





Memory: 512M





Hard disk space: 20G





Bandwidth: 1Mbps.





Installing MySQL data requires the following three packages:





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.





because this host is named Wget, so we can directly through the following three orders to download the three packages we need





[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





input 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 way to solve the problem





is to implement a new dependent library download by modifying Yum, and enter the Rpm-qa|grep yum command. The results are as follows





[root@ay1306231301108721c5z home]# rpm-qa|grep Yum


Yum-3.2.22-20.el5


Yum-metadata-parser-1.1.2-3.el5





then 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





completes the download of this centos-base.repo. Enter Yum Makecache





a lot of information will appear at this time, and you can always enter the Yes action. Oh, look at the results below





installed:


libaio.x86_64 0:0.3.106-5





complete!





can then install the top three packages, back 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





, there's mysql-server on the
.




continue to install 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





at this time pack three packages, you can start MySQL





[root@ay1306231301108721c5z home]# service MySQL start





into MySQL management





[root@ay1306231301108721c5z home]# mysql-u Root





at this time because the password is not set, so the empty





, just press ENTER





then enter and start setting the password





SET PASSWORD = PASSWORD (' hello ');





Note: The above hello is the password





is finished. The rest of you are looking for information.

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.