The mysql on the server is installed with version 8.0.12, and the local one is version 5.7. Today I deleted the 5.7 version and reinstalled it. Below are all the commands to follow and it will be installed. Configuration Source wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm yum localinstall mysql57-community-release-el7-8.noarch.rpm # yum repolist enabled | grep "mysql.*-community.*" Install: Start mysql Automatic startup systemctl enable mysqld systemctl daemon-reload Get the initial password grep 'temporary password' /var/log/mysqld.log UjmO#ZA9nt,Y Change the root password (need to log in to mysql) mysql -u root -p set global validate_password_policy=0; set global validate_password_length=1; ALTER USER 'root'@'localhost' IDENTIFIED BY 'admin'; Authorize other accounts to log in remotely CREATE USER 'admin'@'%' IDENTIFIED BY 'admin'; GRANT ALL ON *.* TO 'admin'@'%'; flush privileges Summarize The above is the detailed command for installing mysql5.7 database under centos7.2 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: How to import Excel files into MySQL database
>>: Implementation of Vue3 style CSS variable injection
Table of contents Install jupyter Docker port map...
CSS display property Note: If !DOCTYPE is specifi...
Several typical values of innodb_flush_method f...
To put it simply, the IP of the virtual machine u...
Related system calls for file operations create i...
Content 1. Give readers a reason to stay. Make the...
How to delete the container created in Docker 1. ...
Table of contents 1. Steps to use Jquery: (1) Imp...
1. Navigation: Unordered List vs. Other Label Ele...
In web projects we often use the timeline control...
Recently, I plan to deploy a cloud disk on my hom...
Building new images from existing images is done ...
Table of contents 1. What is componentization? 2....
Today I found that a program inserted an incorrec...
1. Triangle Border settings Code: width: 300px; h...