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
Table of contents 1. When inserting or modifying ...
This article example shares the application code ...
1. Performance schema: Introduction In MySQL 5.7,...
The data backup operation is very easy. Execute t...
Preface When backing up the database, a full data...
Table of contents Debounce Throttle Summarize Deb...
Remax is an open source framework developed by An...
Scenario Description In a certain system, the fun...
This article shares the specific code for JavaScr...
1. Server setup The remote repository is actually...
Table of contents Preface Static scope vs. dynami...
1. Project Documents 2. Use HTML and CSS for page...
Table of contents Problem Description The general...
In this experiment, we configure MySQL standard a...
Preface In today's increasingly convenient In...