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

The method of creating read-only users by mysql

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

Share

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

Xiaobian to share with you mysql create read-only user method, I hope you read this article after the harvest, let us discuss it together!

mysql add read-only user methods: 1, use the existing root user login to Mysql;2, create a user, and authorize SELECT query permissions, authorization remote access permissions;3, refresh mysql permissions, so that user creation, authorization takes effect.

mysql add read-only users:

1. Log in to Mysql using the existing root user.

mysql -uroot -p

2. Create a user, and authorize SELECT query permissions, authorize remote access permissions, note that username/password in the command refers to the username password, please specify your own. To restrict Mysql access to this user by specifying only IP, change % to have IP.

GRANT SElECT ON *.* TO 'username'@'%' IDENTIFIED BY "password";

3. Refresh mysql permissions to enable user creation and authorization.

After reading this article, I believe you have a certain understanding of mysql's method of creating read-only users. If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!

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