How to authorize ip segments to access QA by mysql
The following mainly brings you mysql how to authorize ip segments to access QA. I hope these words can bring you practical use, which is also the main purpose of this article on how to authorize ip segments to access QA by editing mysql. All right, don't talk too much nonsense, let's just read the following.
2.1 modify permissions
Command: GRANT ALL PRIVILEGES ON *. * TO 'root'@'192.168.175.1' IDENTIFIED BY' love' WITH GRANT OPTION; FLUSH PRIVILEGES; meaning: the user whose IP is 192.168.175.1 can access the database using the username root and password love. If you replace 192.168.175.1 with%, it means that all IP users can use the username root and password love to access the database.
2.2 modify the table
Access to mysql is saved in the user table of the database mysql. You can directly modify the user table of the library mysql to modify permissions. Use mysql
Select host,user from user
Do you think it is very helpful for the above about how mysql can authorize ip segments to access QA? If you need to know more, please continue to follow our industry information. I'm sure you'll like it.