Install MySQL 5.6.15 in Linux

Source: Internet
Author: User
Tags mysql command line

Install MySQL 5.6.15 in Linux

This article briefly explains how to install MySQL 5.6.15 in Linux.

1. Download MySQL 5.6
Download Page: http://dev.mysql.com/downloads/mysql/
Select "Red Hat Enterprise Linux 6/Oracle Linux 6 (x86, 32-bit), RPM Bundle" and download it to the/root/Downloads/directory. The downloaded file is named “mysql-5.6.15-1.el6.i686.rpm-bundle.tar"

2. decompress 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 the RHEL system, you must first install the MySQL-shared-compat-5.6.15-1.el6.i686.rpm compatibility package before you can install the server and client, otherwise the installation will fail.
Yum install MySQL-shared-compat-5.6.15-1.el6.i686.rpm # RHEL compatible package
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

4. Configure the MySQL logon Password
Cat/root/. mysql_secret # obtain the random password generated during MySQL Installation
Service mysql start # start the MySQL service
Mysql-uroot-p # Enter MySQL and use the random password obtained earlier
Set password for 'root' @ 'localhost' = PASSWORD ('Password'); # SET the password of the root account to password in the MySQL command line.
Quit # exit MySQL Command Line
Service mysql restart # restart the MySQL service

-------------------------------------- Split line --------------------------------------

How to install and configure MySQL5.7.3.0

Install MySQL in Ubuntu 14.04

MySQL authoritative guide (original book version 2nd) Clear Chinese scan PDF

Ubuntu 14.04 LTS install LNMP Nginx \ PHP5 (PHP-FPM) \ MySQL

Build a MySQL Master/Slave server in Ubuntu 14.04

Build a highly available distributed MySQL cluster using Ubuntu 12.04 LTS

Install MySQL5.6 and Python-MySQLdb in the source code of Ubuntu 12.04

MySQL-5.5.38 universal binary Installation

-------------------------------------- Split line --------------------------------------

This article permanently updates the link address:

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.