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)
The most important logs in the MySQL log system a...
Table of contents introduce Support Intel CPU Sup...
Table of contents 1. Introduction 2. Install Dock...
Table of contents 1. redo log (transaction log of...
Table of contents 1. Introduction 2. Initial Vue ...
1. Use the <a> tag to complete <a href=&...
As a basic element of a web page, images are one ...
Preface This article mainly introduces the relati...
Table of contents Preface start React Lifecycle R...
HTML is made up of tags and attributes, which are...
Some time ago, I needed to use pip downloads freq...
Table of contents 1. prototype (explicit prototyp...
Table of contents 1. Installation of JDK1.8 under...
Use "onInput(event)" to detect whether ...
This article records the specific method of insta...