Linux (Red Hat 6 32-bit) install Mysql5.6.30

Source: Internet
Author: User
Tags mysql client mysql command line mysql login

Reprint Address: http://my.oschina.net/fusxian/blog/300480

1. Download MySQL 5.6

Download page: http://dev.mysql.com/downloads/mysql/

Here Select "Red Hat Enterprise linux 6/oracle Linux 6 (x86, 32-bit), RPM Bundle" Download, download to/root/fuxian/directory, download file named "Mysql-5.6.30-1.el 6.i686.rpm-bundle.tar "

2. Unzip the TAR package

cd/fuxian/downloads/

TAR-XVF Mysql-5.6.30-1.el6.i686.rpm-bundle.tar

Note: You can also download the following several RPM files separately, the pro-test is feasible!

3. Install MySQL in rpm mode

In a rhel system, the "mysql-shared-compat-5.6.30-1.el6.i686.rpm" Compatibility Pack must be installed before the server and client can be installed, or an error will be installed.

Yum Install mysql-shared-compat-5.6.30-1.el6.i686.rpm # Rhel Compatibility Pack

Yum Install mysql-server-5.6.30-1.el6.i686.rpm # MySQL Server program

Yum Install mysql-client-5.6.30-1.el6.i686.rpm # MySQL client program

Yum Install mysql-devel-5.6.30-1.el6.i686.rpm # MySQL Library and header files

Yum Install mysql-shared-5.6.30-1.el6.i686.rpm # MySQL shared library

4. Configure MySQL login password

Cat/root/.mysql_secret # Get random passwords generated when MySQL is installed
Service MySQL start # start MySQL Services
Mysql-uroot-p # Enter MySQL, use the random password obtained before
SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' 123456 '); # Set the root account password to 123456 on the MySQL command line
Quit # quit MySQL command line
Service MySQL Restart # restart MySQL Services

Reference: http://blog.csdn.net/yang1982_0907/article/details/17115123 thanks to Bean_young's article

Linux (Red Hat 6 32-bit) install Mysql5.6.30

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.