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
1 What is BEM Naming Standard Bem is the abbrevia...
Table of contents Preface Type Inference Truth va...
Query Rewrite Plugin As of MySQL 5.7.6, MySQL Ser...
This article shares the installation tutorial of ...
1. Install MySQL database ① Download and unzip an...
1: Install SVN yum install -y subversion 2. Creat...
Table of contents 1. Scope 2. Scope Chain 3. Lexi...
Table of contents Preface 1. What is selenium? 2....
1. Check whether the existing nginx supports ipv6...
This article shares the specific code of js canva...
Preface Not long ago, I combined browser-sync+gul...
1. Tomcat service is not open Enter localhost:808...
Generally, during Qingming Festival, the National...
introduce Have you ever spent a whole day trying ...
1. First go to the official website https://www.p...