1. Add a new user Only allow local IP access create user 'test'@'localhost' identified by '123456'; Allow external IP access create user 'test'@'%' identified by '123456'; Refresh Authorization flush privileges; 2. Create a database for the user create database test DEFAULT CHARSET utf8 COLLATE utf8_general_ci; 3. Assign permissions to users Grant users all permissions to operate the database through the external IP grant all privileges on `testdb`.* to 'test'@'%' identified by '123456'; Grant users permission to operate all databases through external IP grant all privileges on *.* to 'test'@'%' identified by '123456'; Refresh Authorization flush privileges; This is the end of this article about how to add new users in MySql, create databases for users, and assign permissions to users. For more information about how to add new users in MySql, create databases for users, and assign permissions to users, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Implementation of nested jump of vue routing view router-view
>>: Vue implements a small countdown function
I used the Mysql FIND_IN_SET function in a projec...
What is a Viewport Mobile browsers place web pages...
The overall architecture of NGINX is characterize...
The computer system is: win7 This article is main...
Table of contents Preface Function Overloading Ma...
The following are all performed on my virtual mac...
This article example shares the specific code of ...
This question is a discussion among netizens in a...
1.1. Download: Download the zip package from the ...
Table of contents Preface Query usage scenario ca...
1. What is HTML markup language? HTML is a markup...
Table of contents 1. Block scope 1.1. let replace...
The main differences are as follows: 1. MySQL use...
Let me start with a question: When writing an HTM...
Preface As you all know, we have encountered many...