centos6.8 yum install MySQL 5.6 (complete)

Source: Internet
Author: User
Tags yum repolist

First, check whether the system installs other versions of MySQL data
#yum List Installed | grep mysql#yum-y Remove mysql-libs.x86_64

Second, installation and configuration
# wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm# RPM-IVH mysql-community-release-el6-5.noarch.rpm# Yum Repolist All | grep MySQL
Installing the MySQL Database
# yum Install mysql-community-server-y
Set to On boot (2, 3, 4 are on for start-up automatically)
# chkconfig--list | grep mysqld# chkconfig mysqld on

Third, set the remote root
Start MySQL
# service Mysqld Start
Set Root password
# mysql_secure_installation
Login to root account
Establish a remote root user
Mysql> GRANT All privileges on * * to ' root ' @ '% ' identified by ' you set the password ' with GRANT option;mysql> flush privileges;

Iv. Setting UTF-8 encoding

View MySQL Original code:
Mysql> Show variables like ' character% ';
Set encoding
# VI/ETC/MY.CNF
The following (less fill):
[Mysqld]character-set-server=utf8 collation-server=utf8_general_ci [mysql]default-character-set = utf8[ Mysql.server]default-character-set = Utf8[mysqld_safe]default-character-set = Utf8[client]default-character-set = Utf8

Restart MySQL

# Service Mysqld Restart

Review the encoding again:

     # mysql-uroot-pmysql> Show variables like ' character% '; +--------------------------+----------------------------+ | variable_name | Value |+--------------------------+----------------------------+| character_set_client | UTF8 | | character_set_connection | UTF8 | | Character_set_database | UTF8 | | Character_set_filesystem | binary | | Character_set_results | UTF8 | | Character_set_server | UTF8 | | Character_set_system | UTF8 | | Character_sets_dir | /usr/share/mysql/charsets/|+--------------------------+----------------------------+8 rows in Set (0.00 sec)

centos6.8 yum install MySQL 5.6 (complete)

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.