1. Download 4 rpm packages mysql-community-client-5.7.26-1.el7.x86_64.rpm mysql-community-common-5.7.26-1.el7.x86_64.rpm mysql-community-libs-5.7.26-1.el7.x86_64.rpm mysql-community-server-5.7.26-1.el7.x86_64.rpm If you want to download with Thunder, you must first find the corresponding rpm download path First, open the MySQL official website in the browser: https://dev.mysql.com/downloads/mysql/5.7.html In the opened interface, press F12 on the keyboard to open the developer tools. After opening, it is as follows: Find the corresponding version on the official website: Click to download directly: You can find the download path in the developer tools: The following are the paths of the 4 myql5.7 rpm packages. You can download them by directly opening Xunlei and filling in the download path. The same method can be used for other versions: https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-community-server-5.7.26-1.el7.x86_64.rpm https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-community-client-5.7.26-1.el7.x86_64.rpm https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-community-common-5.7.26-1.el7.x86_64.rpm https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-community-libs-5.7.26-1.el7.x86_64.rpm 2. Upload rpm to linux I use xshell here, and xftp is not installed Enter the put command in sftp and select the downloaded rpm package to upload: 3. Installation The uploaded rpm is as follows: Install through Installation order common-->libs-->client-->server If there is no --force --nodeps, a warning will appear: 4. Configuration Start the mysql service: [root@localhost ~]# service mysqld start Redirecting to /bin/systemctl start mysqld.service [root@localhost ~]# Find the initial password: [root@localhost ~]# cat /var/log/mysqld.log |grep password 2019-06-02T08:39:38.448115Z 1 [Note] A temporary password is generated for root@localhost: dLZMCRv?s2q) 2019-06-02T08:40:41.870130Z 2 [Note] Access denied for user 'root'@'localhost' (using password: NO) Log in to mysql: The password is dLZMCRv?s2q found above) Change the root password: Allow remote connections: mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'newpasswd' WITH GRANT OPTION; mysql> FLUSH PEIVLEGES; Turn off the firewall: Summarize The above is the tutorial illustration of how to install mysql5.7 using rpm on centos7 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: React Synthetic Events Explained
>>: Solution to forgetting the administrator password of mysql database
Table of contents 1. Create a socket 2. Bind sock...
This article uses examples to illustrate the prin...
I have been engaged in Java web development for mo...
First of all, what is 404 and soft 404? 404: Simpl...
<body> <div id="root"> <...
Introduction to Load Balancing Before introducing...
1. Review The Buffer Pool will be initialized aft...
Table of contents Problem description: Installati...
background Recently, some friends who are new to ...
<br />First think of the idea, then draw a s...
Table of contents 1. Retrieve via --skip-grant-ta...
Table of contents 1. Sub-route syntax 2. Examples...
Scenario: As the amount of data increases, the di...
Download image docker pull openjdk Creating a Dat...
A friend in the group asked a question before, th...