1. Do a good job of cleaning before installation rpm -pa | grep mysql or rpm -qa | grep -i mysql yum remove mysql-xxx-xxx find / -name mysql rm -rf /xxx/xxx/xxx 2. Download the corresponding installation package Download link: https://dev.mysql.com/downloads/repo/yum/ 3. Install MySQL Execute rpm file rpm -ivh mysql57-community-release-el7-11.noarch.rpm Install mysql yum install mysql-community-server Start mysql service Serve mysql start Get the initialization password cat /var/log/mysqld.log | grep password Enter the database to change the password mysql -uroot -p ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!'; Enable remote access use mysql; update user set host='%' where user='root'; Open port 3306 vim /etc/sysconfig/iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT service iptables restart Summarize The above is a detailed tutorial on how to install mysql8.0 using the Linux yum command. I hope it will be helpful to you. If you have any questions, please leave me a message and I 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:
|
<<: Detailed explanation of mysql basic operation statement commands
>>: Detailed steps for creating a Vue scaffolding project
Methods for changing passwords before MySQL 5.7: ...
Assuming business: View the salary information of...
Common application scenarios The interfaces of cu...
The team replaced the new frame. All new business...
1. Multiple calls to single arrow Once a single a...
Preface Usually when making h5 pages, you need to...
IE gave us a headache in the early stages of deve...
Table of contents Generate random numbers Generat...
I have never been able to figure out whether the ...
This article example shares the specific code of ...
Preface Recently, part of the company's busin...
Today I will introduce to you a difference betwee...
Check virtualization in Task Manager, if it is en...
Implement div wheel zooming in and out in Vue pro...
Neo4j (one of the Nosql) is a high-performance gr...