Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to authorize ip segments to access QA by mysql

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report