Get the App
SLTechnology News&Howtos  ›  Database  › 

How to authorize ip segments to access QA by mysql

Shulou Source: shulou.com Published: 2022-06-01 19:58:20 11月17日 Update

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.

Tags: User data database permissions following text content password user name meaning command actual nonsense text more usefulness purpose article industry information help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information macOS Docker NVidia Huawei