Αποτελέσματα Αναζήτησης
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 ...
1 Οκτ 2021 · Use the following statement to check the privileges for a specific user: SHOW GRANTS FOR [username]@[host]; For example, to check the permissions for test_user: SHOW GRANTS FOR test_user; Without a hostname, the command checks for the default host '%'. Alternatively, check the permissions for the currently logged-in user with: SHOW GRANTS;
2 Ιουν 2010 · This set of statements demonstrates that you can grant a user to a user, a role to a user, a user to a role, or a role to a role: CREATE USER 'u1'; CREATE ROLE 'r1'; GRANT SELECT ON db1.* TO 'u1'; GRANT SELECT ON db2.*
2 Αυγ 2013 · Enables the account to see database names by issuing the SHOW DATABASE statement. Accounts that do not have this privilege see only databases for which they have some privileges, and cannot use the statement at all if the server was started with the --skip-show-database option.
This statement displays the privileges and roles that are assigned to a MySQL user account or role, in the form of GRANT statements that must be executed to duplicate the privilege and role assignments.
This statement displays the privileges and roles that are assigned to a MySQL user account or role, in the form of GRANT statements that must be executed to duplicate the privilege and role assignments. Note. To display nonprivilege information for MySQL accounts, use the SHOW CREATE USER statement.
2 Αυγ 2010 · To see what privileges a given account has, use the SHOW GRANTS statement. For example: SHOW GRANTS FOR 'joe'@'office.example.com'; SHOW GRANTS FOR 'joe'@'home.example.com'; Internally, the server stores privilege information in the grant tables of the mysql system database. The MySQL server reads the contents of these tables into memory when ...