"Linux CentOS" CentOS 7 YUM Install MySQL 5.7

Source: Internet
Author: User

Download the response version of the YUM source on the MySQL official network: http://dev.mysql.com/downloads/repo/yum/

# download Source $wgethttp//dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm# Installation Source $ rpm-IVH mysql57-community-release-el7-9. noarch.rpm# installed MySQL, will auto-install dependent software $Yum Install-Y mysql-server# Modifying MySQL configuration file $VI/etc/my.cnf# Modifying or shutting down the MySQL password policy (optional line): Validate_password_policy=0Validate_password=off# Modify the default encoding for UTF-8, added after [mysqld] Character_set_server=Utf8init_connect='SET NAMES UTF8'# activate MySQL service; Systemctl is used instead of service and Chkconfig, with Baidu $ systemctl start mysqld# startup MySQL service $ systemctl Enable Mys qld# re-download service $ systemctl Daemon-reload# View the root user password for MySQL and/var/log/generate a password for root in Mysqld.log $grep 'Temporary password'/var/log/mysqld.log# using root login mysql$ MySQL-uroot-p# to modify MySQL root password mysql> Alter User'Root'@'localhost'Identified by'Xinmi Password'; # Add remote Chengdeng user, with Baidu MySQL> Grant rights privileges on the repository. Table or other to'User name'@'%'Identified by'Password'With Grant option;# exit Mysqlmysql> quit;

Address: http://blog.csdn.net/xyang81/article/details/51759200

"Linux CentOS" CentOS 7 YUM Install MySQL 5.7

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.