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)
This article shares the specific code of JavaScri...
After MySQL 5.7.18 is successfully installed, sin...
Preface In a recent project, we need to save a la...
Recently, I found that the company's server t...
Effect Preview Press the "Click to Preview&q...
Long story short, today we will talk about using ...
Install nginx Note that you must install nginx-fu...
Table of contents 1. Embed CSS styles directly in...
First of all, we need to know what a state manage...
Table of contents 1. Clever use of indexes and va...
This article example shares the specific code of ...
1. Top-level usage 1. Install cnpm npm i -g cnpm ...
As an open source software, Apache is one of the ...
grammar Here is the generic SQL syntax for INSERT...
This article shares the specific code of JavaScri...