View installation and uninstallation # View rpm -qa | grep mysql # Uninstall yum -y remove mysql-libs-5.1.66-2.el6_3.x86_64 1. CentOS7 needs to uninstall mariadb first Installation package resource address mysql download address: https://dev.mysql.com/downloads/mysql/ # Download resource namemysql-5.7.22-1.el7.x86_64.rpm-bundle.tar Unzip resources tar -xvf mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar Get the rpm package mysql-community-common-5.7.19-1.el6.x86_64.rpm mysql-community-client-5.7.19-1.el6.x86_64.rpm mysql-community-server-5.7.19-1.el6.x86_64.rpm mysql-community-libs-5.7.19-1.el6.x86_64.rpm Install # Installation order# common --> libs --> clients --> server # Installation command rpm -ivh mysql-community-common-5.7.19-1.el6.x86_64.rpm mysql-community-libs-5.7.19-1.el6.x86_64.rpm mysql-community-client-5.7.19-1.el6.x86_64.rpm mysql-community-server-5.7.19-1.el6.x86_64.rpm You may need to rely on the libaio package Installation command yum -y install libaio initialization mysqld --initialize --user=mysql start up service mysqld start Log in # View the initial password cat /var/logs/mysql.log #Or grep 'password' /var/logs/mysql.log -n -B 5 # Login to mysql -uroot -p'123456' # Modify the initial password set PASSWORD=PASSWORD('password'); Authorize Remote Link ### Authorize 192.168.0.1 to remotely connect to *[all databases].*[all tables] Account: root Password: 123456 grant all privileges on *.* to 'root'@'192.168.0.1' identified by '123456'; ### Authorize all IPs grant all privileges on *.* to 'root'@'%' identified by '123456'; ### Above *.* means [database].[table] ### Make the authorization take effect immediately flush privileges; You may also be interested in:
|
<<: Detailed explanation of JavaScript state container Redux
>>: How to add Nginx proxy configuration to allow only internal IP access
I wrote this blog to remember that I just install...
Preface lvm (Logical Volume Manager) logical volu...
Original link https://github.com/XboxYan/no… A bu...
The default table name is base_data and the json ...
This article shares the specific code of Vue to i...
vue-cli uses stimulsoft.reports.js (nanny-level t...
Basic knowledge of responsive layout development ...
The installation method of MySQL5.7 rpm under Lin...
Assumption: The stored procedure is executed ever...
The establishment of MySQL index is very importan...
Monday to Sunday time format conversion (Y --- ye...
1. Install nginx in docker: It is very simple to ...
The first solution is to push the image to a publ...
Nginx is now one of the most popular load balance...
1. Overall steps At the beginning, we introduced ...