Create a user: create user 'oukele'@'%' identified by 'oukele'; If the information listed below is prompted, you need to refresh the permission table The MySQL server is running with the --skip-grant-tables option so it cannot execute this st... Here are the steps: Extended Learning Create a new mysql user and grant remote access rights [root@demo /]# mysql -u root -p #Log in to the server database Enter password:123xxx #1. Create a new user testuser with password testuserpass CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'testuserpass'; #2. Create a database testDB create database testDB; #3. Execute the command to add testDB permissions for the testuser user grant all privileges on testDB.* to testuser@localhost identified by 'testuserpass'; #4. Execute the command to add remote access permissions for the testuser user GRANT ALL PRIVILEGES ON testDB.* TO 'testuser'@'%' IDENTIFIED BY 'testuserpass' WITH GRANT OPTION; #5. Refresh the permission table flush privileges; The above is all the content of this knowledge point. More relevant knowledge points can be found in the related articles below. You may also be interested in:
|
<<: How to delete the container created in Docker
>>: Cross-domain issues in front-end and back-end separation of Vue+SpringBoot
concept MMM (Master-Master replication manager fo...
Table of contents 01 What is the essence of a con...
Table of contents Preface What is Deno? Compariso...
Using depends_on to sort containers does not perf...
cause When executing the docker script, an error ...
Enable the service when you need it, and disable ...
MyISAM storage engine The MyISAM storage engine i...
MySQL UNION Operator This tutorial introduces the...
Copy code The code is as follows: <head> &l...
1. After installing the Windows version of Docker...
This article describes the Linux user and group c...
Table of contents Preface call usage accomplish A...
Table of contents 1. Introduction 2. Use 1. Diffe...
background First of all, I would like to state th...
This article uses an example to describe how to r...