1, download, open http://dev.mysql.com/downloads/mysql/Select the developer version, do not need to register login, click to download the lower left corner has a line of fine print:No Thanks, just start my Download. Click to download !
2, upload the downloaded file to Linux, TAR-XVF Mysql-5.7.4-m14-0.2.m14.el7.x86_64.rpm-bundle.tar release
3, the download system comes with the MARIADB:
1) rpm-e--nodeps mariadb-libs-5.5.33a-3.el7.x86_64
2) rpm-e--nodeps mariadb-libs-5.5.33a-3.el7.x86_64
3) Rpm-e Mariadb-devel–nodeps
3. Install in sequence
RPM-IVH mysql-community-common-5.7.4-0.2.m14.el7.x86_64.rpm
RPM-IVH mysql-community-libs-5.7.4-0.2.m14.el7.x86_64.rpm
RPM-IVH mysql-community-embedded-5.7.4-0.2.m14.el7.x86_64.rpm
RPM-IVH mysql-community-devel-5.7.4-0.2.m14.el7.x86_64.rpm
RPM-IVH mysql-community-embedded-devel-5.7.4-0.2.m14.el7.x86_64.rpm
RPM-IVH mysql-community-client-5.7.4-0.2.m14.el7.x86_64.rpm
RPM-IVH mysql-community-server-5.7.4-0.2.m14.el7.x86_64.rpm
Depending on the prompt, handle the dependency relationship.
4, installation success, start Mysql.service,.
5, MySQL5.7 for the root user randomly generated a password, in error log, about the location of the error log, if the installation is RPM package, the default is/var/log/mysqld.log
6, according to obtain the random password login, executes set PASSWORD = PASSWORD (' 123456 '), Error:
Password complies with security policy .....
The solution, may refer to: https://www.cnblogs.com/ivictor/p/5142809.html, thanks this Daniel!
Documentation Reference:
English MySQL Document: Http://tool.oschina.net/apidocs/apidoc?api=mysql-5.1-zh
English MySQL Document: Http://tool.oschina.net/apidocs/apidoc?api=mysql-5.5-en
----------MySQL installation configuration completed, as recorded on 2018.01.20
Linux Learning log-------mysql installation