Install mysql5.7 (yum mode) under Linux (centos6.8 64-bit)

Source: Internet
Author: User

download MySQL source installation package # Wget http://Dev.mysql.com/Get/Mysql57-Community-Release-El7-8. noarch.rpm installing the MySQL source pack #yum localinstall mysql57-Community-Release-El7-8. noarch.rpm Check if MySQL source is installed successfully # Yum Repolist enabled|grep "MySQL.*-Community.*"See (three) indicates success: MySQL-Connectors-Community MySQL Connectors Community $MySQL-Tools-Community MySQL Tools Community -mysql57-Community MySQL5.7Community Server189install MySQL service # yum install MySQL-Community-server starts MySQL service # systemctl start mysqld view mysql boot status # SYSTEMCTL status mysqld Set boot # systemctl enable mysqld# system CTL Daemon-Reload #重新载入 View root default password # grep'Temporary password' /var/Log/Mysqld.Logchange root password # mysql-Uroot-Pmysql> ALTER USER 'Root'@'localhost'Identified by 'abc1234!'; or MySQL> SetPassword for'Root'@'localhost'=Password'abc1234!'Note: mysql5.7 The password security check plug-in (Validate_password) is installed by default, and the default password-checking policy requires that the password must contain: uppercase and lowercase letters, numbers, and special symbols, and not less than 8 bits in length. Otherwise, the error will be prompted1819(HY000): Your passworddoes notSatisfy the CurrentPolicy requirements Error Adding a remote connection to the logged on user, such as: User name: Test, Password: ABC@1234MySQL>GRANT  All Privileges  on *.*  to 'Test'@'%'Identified by '[email protected]'  with GRANT OPTIONRestart MySQL Service # systemctl Restart Mysqld is complete, can be connected remotely with Navicat. 

Install mysql5.7 (yum mode) under Linux (centos6.8 64-bit)

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.