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
Recently, students from the User Experience Team o...
The Docker daemon uses HTTP_PROXY , HTTPS_PROXY ,...
In actual work or interviews, we often encounter ...
To query two different tables, you need to merge ...
illustrate: Today, when continuing the last offic...
1. As mentioned above I saw this macro when I was...
I recently wanted to convert a website to https a...
First download the zip archive version from the o...
Eating well and getting enough rest sounds simple...
Service.xml The Server.xml configuration file is ...
I don't know if you have ever encountered suc...
1. First introduce several commonly used MySQL fu...
Recently, I used html-webapck-plugin plug-in for ...
There is no doubt that containers have become an ...
Last time we talked about some SQL query optimiza...