(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
background CVE-2021-21972 An unauthenticated comm...
1. Node server setup + database connection The op...
I have recently learned web development front-end...
1. Flex is the abbreviation of Flexible Box, whic...
Newbie, record it yourself 1. Install supervisor....
Vue+iview menu and tab linkage I am currently dev...
The most popular tag is IE8 Browser vendors are sc...
Scenario 1: Due to server restrictions, only one ...
The installation tutorial of mysql 8.0.11 winx64 ...
This article uses an example to illustrate the us...
The two parameters innodb_flush_log_at_trx_commit...
The effect of this function is similar to vue的pro...
one: 1. Semantic tags are just HTML, there is no ...
For a newly created website, take ASP.NET MVC5 as...
I searched the entire web and found all kinds of ...