Αποτελέσματα Αναζήτησης
21 Μαρ 2012 · Figure out how to do this for current user without DBA privileges. Probably involves USER_SYS_PRIVS (directly granted system privileges), USER_TAB_PRIVS (directly granted object privs) USER_ROLE_PRIVS (user's directly granted roles), ROLE_ROLE_PRIVS (for getting inherited roles), ROLE_SYS_PRIVS (system privs through roles) and ROLE_TAB_PRIVS ...
28 Αυγ 2012 · This Linux shell fragment loops over all MySQL users and does a SHOW GRANTS for each: mysql --silent --skip-column-names --execute "select concat('\'',User,'\'@\'',Host,'\'') as User from mysql.user" | sort | \. while read u.
23 Μαρ 2017 · In MySQL, you can use the SHOW GRANTS command to show privileges granted to a user. Without any additional parameters, the SHOW GRANTS command lists the privileges granted to the current user account with which you have connected to the server.
18 Σεπ 2024 · Combine several options in a single command to get detailed user information. How to Show MySQL User Information. The following query provides a table with data specific to each user: SELECT User, Host, authentication_string FROM mysql.user;
20 Απρ 2019 · MySQL server allows us to create numerous users and databases and grant appropriate privileges so that the users can access and manage databases. This tutorial explains how to use the command line to create and manage MySQL or MariaDB databases and users.
show grants works fine but if you need to know if user has special access from a specific IP/domain, a better command is: select * from information_schema.user_privileges where grantee like '%username%';