(1) Server configuration: [root@localhost ~]# cd /usr/local/src/ [root@localhost src]# wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm [root@localhost src]# rpm -ivh mysql57-community-release-el7-8.noarch.rpm """ mysql-community-client-5.7.30-1.el7.x86_64.rpm mysql-community-server-5.7.31-1.el7.x86_64.rpm """ Import these two rpm packages via FTP: /var/cache/yum/x86_64/7/mysql57-community/packages/ [root@localhost src]# yum -y install mysql-server Long waiting time (2) Reset password and create user #Restart mysql service [root@VM-0-3-centos src]# service mysqld restart #Reset password [root@localhost ~]# grep "password" /var/log/mysqld.log #Password resetmysql> alter user 'root'@'localhost' identified by 'password';//Password reset, new passwordQuery OK, 0 rows affected (0.00 sec) #Create a new user, mysql> create user 'username'@'%' identified by 'paswword'; //Add new user, password Query OK, 0 rows affected (0.00 sec) #Assign permissions to new users mysql> grant all privileges on *.* to 'user1'@'%' with grant option; Query OK, 0 rows affected (0.00 sec) # Refresh permissions mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) Query OK, 0 rows affected (0.00 sec) # Refresh permissions mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) (3) Query the current MySql user: mysql> select user,host from mysql.user; +---------------+-----------+ | user | host | +---------------+-----------+ | user1 | % | | mysql.session | localhost | | mysql.sys | localhost | | root | localhost | +---------------+-----------+ 4 rows in set (0.00 sec) mysql> (4)Connect on Navicat 【General】End configuration parameters 【SSH】End configuration parameters The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Several implementation methods and advantages and disadvantages of SQL paging query in MySQL
>>: JavaScript implements select all and unselect all operations
Docker Compose Docker Compose divides the managed...
Documentation: https://github.com/hilongjw/vue-la...
See: https://www.jb51.net/article/112612.htm Chec...
Preface Interceptor In some modern front-end fram...
1: Download from mysql official website https://d...
Table of contents Preface🌟 1. API Introduction 2....
First, there is only one change event. changeleve...
1. Summary of location usage Location can locate ...
Table of contents Preface 1. Why do we need bread...
MySQL supports three types of comments: 1. From t...
Table of contents 1.1. Network access between con...
In the previous blog, Xiao Xiong updated the meth...
What is a mirror? An image can be seen as a file ...
First is the idea We use the <input type="...
Problem Description Today, when I was modifying t...