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. Install JDK 2. Install Jenki...
Background description: On an existing load balan...
1. Installation of Docker under CentOS8 curl http...
Table of contents 1. v-text text rendering instru...
Table of contents The relationship between the co...
Preface This article aims to explain the most bor...
Table of contents Overview 1. Menu and routing pr...
Preface When we build a MySQL cluster, we natural...
Preface After a long time of reading various mate...
This article shares the detailed steps of install...
Recently, the company is preparing to develop an ...
1. Key points for early planning of VMware vSpher...
As shown in the figure: Table Data For such a tre...
1. Brief introduction of the event An event is a ...
1. Introduction WHMCS provides an all-in-one solu...