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)
Preface: After studying the previous article, we ...
1. Download cuda10.1: NVIDIA official website lin...
Does time really exist? Some people believe that ...
The editor also shares with you the corresponding...
Table of contents 1. Create HTML structure 2. Cre...
Table of contents 1. Description 2. Installation ...
After MySQL database optimization, not only can t...
Installation Environment Description •System vers...
If the program service is deployed using k8s inte...
Preface If we want to achieve the effect of onlin...
####Management of input and output in the system#...
Vulnerability Introduction The SigRed vulnerabili...
The simple installation configuration of mysql5.7...
Uses of new The function of new is to create an i...
Table of contents Preface Child components pass d...