Install Mysql5.6-bundle.tar under Linux

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

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/downloads/directory, download file named "MySQL-5.6. 15-1.el6.i686.rpm-bundle.tar "

2. Unzip the TAR package
cd/root/downloads/
TAR-XVF Mysql-5.6.15-1.el6.i686.rpm-bundle.tar

3. Install MySQL in rpm mode
in a rhel system, the "mysql-shared-compat-5.6.15-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.15-1.el6.i686.rpm # Rhel Compatibility Pack
yum Install mysql-server-5.6.15-1.el6.i686.rpm # MySQL Server program
yum Install mysql-client-5.6.15-1.el6.i686.rpm # MySQL client program
yum Install mysql-devel-5.6.15-1.el6.i686.rpm # MySQL Library and header files
yum Install mysql-shared-5.6.15-1.el6.i686.rpm # MySQL shared library

RPM-IVH mysql-server-5.6.15-1.el6.i686.rpm

RPM-IVH mysql-client-5.6.15-1.el6.i686.rpm

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 (' PASSWORD ');# Set the root account password to password on the MySQL command line
Quit # quit MySQL command line
Service MySQL Restart # restart MySQL Services

Install Mysql5.6-bundle.tar under Linux

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.