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
The computer system has been reinstalled, and the...
Table of contents Preface 1. Local port forwardin...
The img tag in XHTML is so-called self-closing, w...
Table of contents The relationship between the co...
Write configuration files in server.xml and conte...
1. Enable Prometheus telemetry data By default, t...
This article shares the installation and configur...
Table of contents 1. querySelector queries a sing...
This article example shares the specific code of ...
Anyone in need can refer to it. If you have tried...
Through the brief introduction in the previous tw...
Because frameset and body are on the same level, y...
background When you open the product details on s...
Table of contents Reactive Function usage: toRef ...
1. The difference between forward proxy and rever...