In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to write the sql sentence of querying mysql user table. It is very detailed and has certain reference value. Friends who are interested must finish reading it.
In mysql, you can use the "SELECT * FROM mysql.user;" statement to query the user table, and you must have query permissions on the user table to execute the statement. The newly created user only has permission to log in to the MySQL server, does not have any other permissions, and cannot query the user table.
MySQL automatically creates a database called mysql when it is installed, and the mysql database stores user permission tables. After the user logs in, MySQL assigns appropriate permissions to each user according to the contents of these permission tables.
The user table is the most important permission table in MySQL, which is used to record account information that is allowed to connect to the server. It is important to note that all permissions enabled in the user table are global and apply to all databases.
In MySQL, you can view the corresponding user permissions by looking at the data records in the mysql.user table, or you can use the SHOW GRANTS statement to query the user's permissions.
The basic permissions of the user are stored in the user table under the mysql database and can be viewed using the SELECT statement. The code for the SELECT statement is as follows:
SELECT * FROM mysql.user
To execute this statement, you must have query permissions on the user table.
Note: the newly created user only has the right to log in to the MySQL server, does not have any other permissions, and cannot query the user table.
The above is all the contents of querying how to write the sql statement of the mysql user table. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.