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
Preface A Docker image consists of a Dockerfile a...
1. Installation of MYSQL 1. Open the downloaded M...
1. Introduction to Distributed Storage System Wit...
background Basic Concepts CSS filter property app...
Mysqldump is used for logical backup in MySQL. Al...
Table of contents 1. Introduction to Linux system...
environment System: Ubuntu 18.04 Software: qt5.12...
1. First enter the server's mysql to modify p...
Table of contents Mode Parameters HashHistory Has...
Achieve results Implementation Code html <div ...
After MySQL was upgraded to version 5.7, its secu...
1. Introduction First of all, we need to answer a...
Table of contents 1. Build basic styles through E...
Creating a Cursor First, create a data table in M...
The span tag is often used when making HTML web p...