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)