CentOS 6.5 installs MySQL-5.5 with Yum

Source: Internet
Author: User
Tags gpg

1. Installing the mysql-5.5 Yum source

rpm -ivh http://repo.mysql.com/yum/mysql-5.5-community/el/6/x86_64/mysql-community-release-el6-5.noarch.rpm

To install MySQL5.6, you can install:

rpm -ivh http://repo.mysql.com/mysql-community-release-el6.rpm最新的yum源可以去http://dev.mysql.com/downloads/repo/yum下载

2. Modify the installed Yum source

Edit/etc/yum.repos.d/mysql-community.repo file, change 5.5 to 1,5.6 enabled to 0

# Enable to use MySQL 5.5[mysql55-community]name=MySQL 5.5 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.5-community/el/6/$basearch/enabled=1gpgcheck=1gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql# Enable to use MySQL 5.6[mysql56-community]name=MySQL 5.6 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/6/$basearch/enabled=0gpgcheck=1gpgkey=file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

3. Installing mysql-5.5

yum install mysql-community-client mysql-community-devel mysql-community-server php-mysql

4. Adjust the configuration

Edit/etc/my.cnf File

innodb_file_per_table=1 设置InnoDB为独立表空间模式,每个数据库的每个表都会生成一个数据目录innodb_buffer_pool_size= 默认值:128M,设置为操作系统内存的70%-80%最佳

5, the following command set the boot from the start, save us every time we boot up to start MySQL.

chkconfig --levels 345 mysqld on

Original account and password root root

CentOS 6.5 installs MySQL-5.5 with Yum

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.