Steps to configure whitelist access in mysql1. Log inmysql -uroot -pmysql 2. Switch to mysql databaseuse mysql; 3. View users with whitelist permissionsselect Host,User from user; 4. Specify the IP address that has permission to access MySQLGRANT ALL ON *.* to root@'192.168.1.4' IDENTIFIED BY 'your-root-password'; If you don't have a password, leave it blank. GRANT ALL ON *.* to root@'192.168.1.4' ; The ip behind @ is the specified whitelist ip 5. Delete the permissions of whitelisted usersDELETE FROM user WHERE User='username' and Host='host'; 6. RefreshAfter modifying permissions, you need to refresh them to take effect FLUSH PRIVILEGES; mysql ip whitelist using wildcardToday, I want to let MySQL add IP addresses like 192.168.*.* to the whitelist. When I use 192.168.%.%, mysql reports an error
If you use a fixed IP such as 192.168.0.1, no error will be reported. After some research, I found that the correct way to write it should be to add the subnet mask 192.168.0.0/255.255.0.0, so that access from the entire Class B subnet is allowed. The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Nginx configuration to achieve multiple server load balancing
>>: Dealing with the problem of notes details turning gray on web pages
The World Wide Web Consortium (W3C) has released a...
This article mainly introduces an example of how ...
There are many seemingly true "rumors" ...
For example: Copy code The code is as follows: <...
The editor also shares with you the corresponding...
Demand background: Insert GIF dynamic images into...
Problems that may arise from optimization Optimiz...
Table of contents 1. HTTP Range Request 1.1 Range...
Table of contents Preface question principle test...
In actual development or production environments,...
Table of contents What is virtual dom? Why do we ...
The day before yesterday, I encountered a problem...
I encountered a requirement to customize shortcut...
There are two types of dead link formats defined b...