In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
            
                    
                
2025-11-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to increase the number of users in mysql". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to increase users in mysql".
Add users:
(note: the following is a command in the MYSQL environment, so it is followed by a semicolon as a command Terminator)
Format: grant select on database. * to user name @ login host identified by "password"
The first kind:
Add a user's test1 password to abc, so that he can log in on any host and have the authority to query, insert, modify and delete all databases. First use the root user to connect to MYSQL, and then type the following command:
Grant select,insert,update,delete on *. * to test1@ "%" Identified by "abc"
But the increase in the number of users is very dangerous. If you want someone who knows the password of test1, he can log in to your mysql database on any computer on internet and do whatever he or she wants with your data. The second solution is as follows:
The second kind:
Add a user's test2 password to abc, so that he can only log in on localhost and query, insert, modify and delete the database mydb (localhost refers to the local host, that is, the host where the MYSQL database is located), so that even if the user knows the test2 password, he cannot directly access the number from the internet.
Mysql > grant select,insert,update,delete on book.* to test2@localhost Identified by "abc"
If you don't want test2 to have a password, you can issue another command to eliminate the password.
Mysql > grant select,insert,update,delete on book.* to test2@localhost Identified by ""
At this point, I believe you have a deeper understanding of "how to increase the number of users of mysql". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





            
            About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.