1. Environment IntroductionInstalling MySQL on Linux using yum requires downloading a series of MySQL components from the Internet. This process is very time-consuming and there is a possibility of download interruption. If you want to install MySQL quickly, you can first download the offline package of MySQL from the Internet and transfer it to the system for installation. This article takes CentOS7 and MySQL8.0.19 as an example to explain A quick installation and configuration method for MySQL. 1. Operating system: CentOS7_x64 Offline package download: Link: https://pan.baidu.com/s/1OdehL8MoCe44nJ-SkkW8xw Extraction code: fk2d 2. Install MySQL-8.0.19After decompressing the MySQL compressed file, you will get the following rpm file list: The following rpm packages need to be installed in order: mysql-community-common-8.0.19-1.el7.x86_64.rpm mysql-community-libs-8.0.19-1.el7.x86_64.rpm mysql-community-client-8.0.19-1.el7.x86_64.rpm mysql-community-server-8.0.19-1.el7.x86_64.rpm Installation command: rpm -ivh rpm package name Note: Before installing rpm -qa | grep mariadb-libs* rpm -e --nodeps mariadb-libs* After the installation is complete, start MySQL and log in to verify that the installation was successful: systemctl start mysqld cat /var/log/mysqld.log | grep password mysql -uroot -p enter password: 3. Configure MySQL1. The initial MySQL password is complex and difficult to remember. It needs to be modified after the first login: ALTER USER 'root'@'localhost' IDENTIFIED BY 'password'; 2. Develop MySQL connection permissions so that it can be accessed by remote connection tools: UPDATE mysql.user SET `Host`='%' WHERE User='root'; flush privileges; If you do not have the permission to open the connection, the following error will be reported when you use a client such as Navicat to connect to the database: 3. Restore the password verification plug-in and change the password authentication plug-in of MySQL8 from caching_sha2_password to mysql_native_password: ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'passowrd'; If the plug-in is not replaced, the following error will be reported during connection: 4. Open port 3306 on the firewall and set MySQL to start automatically at boot: firewall-cmd --zone=public --add-port=3306/tcp --permanent systemctl enable mysqld Summarize This is the end of this article about the illustrated tutorial on the quick installation and configuration of MySQL 8.0.19 on Linux. For more information about the installation and configuration of MySQL 8.0.19 on Linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Detailed graphic tutorial on installing Ubuntu 20.04 dual system on Windows 10
>>: JavaScript CollectGarbage Function Example
This article mainly introduces the differences be...
Introduction react-i18next is a powerful internat...
Table of contents 1. Introduction 2. Use 1. Diffe...
1. Check the synchronization status of A and B da...
Table of contents Preface Centering inline elemen...
This article describes how to implement coexisten...
Copy code The code is as follows: a:link { font-s...
Preface Note: The test database version is MySQL ...
Scenario 1: Html: <div class="outer"...
1. Foreign key setting method 1. In MySQL, in ord...
What does Ctrl+c, Ctrl+d, Ctrl+z mean in Linux? C...
Docker is really cool, especially because it'...
How is the MySQL Select statement executed? I rec...
Common Convention Tags Self-closing tags, no need...
Website, (100-1)% of the content is navigation 1....