1. Installation preparation1. View Linux related information (Linux command line operation)(1) Check the Linux version to download the corresponding MySQL. [View Linux information:] uname -a (2) Check whether MySQL has been installed.
2. Download MySQL(1) Official website address 【Official website address:】 (2) Choose the appropriate version
2. Start installation1. Transfer files to the /opt directoryUse xFtp6 to transfer the downloaded file from the Windows system to the Linux system (optional, you can download it directly on Linux). 2. Install MySQL using RPM(1) Step 1: Execute the installation command rpm -ivh package name [Installation order: (Packages depend on each other, so you must pay attention to the installation order)] Install common first Reinstall libs (make sure mariadb is uninstalled, centos7 supports mariadb by default but does not support mysql, conflicts will occur if not uninstalled) Reinstall the client Finally install the server [root@localhost opt]# rpm -ivh mysql-community-common-8.0.11-1.el7.x86_64.rpm [root@localhost opt]# rpm -e --nodeps mariadb-libs-5.5.64-1.el7.x86_64 [root@localhost opt]# rpm -ivh mysql-community-libs-8.0.11-1.el7.x86_64.rpm [root@localhost opt]# rpm -ivh mysql-community-client-8.0.11-1.el7.x86_64.rpm [root@localhost opt]# rpm -ivh mysql-community-server-8.0.11-1.el7.x86_64.rpm (2) Step 2: Check whether the installation is successful
3. Start the mysql service(1) Step 1: Check whether the current service is started
(2) Step 2: Start and stop the MySQL service
4. Connect to MySQLAn error occurs when connecting to the database for the first time.
(1) Solution 1: Check the initial password and use it to log in.
(2) Solution 2:
5. Change the initial password You can enter mysql through the above two methods, but the password is the initial password, or there is no password, which is definitely difficult to operate. A custom password is required.
(2) After setting the initial password, you need to edit [root@localhost /]# vim /etc/my.cnf [root@localhost /]# service mysqld restart Summarize This is the end of this article about the tutorial on how to install mysql 8.0.11 using RPM in Linux (CentOS7). For more information about installing mysql 8.0.11 using linux rpm, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Vue parent component calls child component function implementation
>>: A brief discussion on value transfer between Vue components (including Vuex)
Table of contents Preface 1. Preparation 2. Actua...
The scroll-view of WeChat applet has more bugs wh...
Preface The latest version of MySQL 8.0 is 8.0.4 ...
(1) Each HTML tag has an attribute style, which c...
This article summarizes the knowledge points of M...
When executing yum in dockerfile or in the contai...
So which one of these formats, GIF, PNG, and JPG,...
About Nginx, a high-performance, lightweight web ...
Use canvas to create graphics and text with shado...
After creating a container locally, you can creat...
The principle of nginx to achieve resource compre...
We know that MySQL is a persistent storage, store...
OOM stands for "Out Of Memory", which m...
Preface: Vue3 has been released for a long time. ...
The following introduces the commonly used head s...