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
The first and most important step is how to insta...
CSS font properties define the font family, size,...
This article uses examples to describe the add, d...
1. Trash or Classic? Web technology updates very ...
What is a profile? We can use it when we want to ...
This article example shares the specific code of ...
Table of contents 1. Installation preparation 1. ...
Basic Introduction to Floating In the standard do...
Table of contents 1. Location / Matching 2. Locat...
The logs in MySQL include: error log, binary log,...
mysql returns Boolean type In the first case, ret...
Table of contents 1. Introduction 2. Solution Imp...
Enter the mysql command: mysql -u+(user name) -p+...
1. Find the corresponding nodejs package, refer t...
Why? The simplest way to put it is that pixels are...