Difference between revisions of "MySQL"

Jump to navigation Jump to search
2 bytes removed ,  14:49, 18 January 2010
m
→‎Display Users: Added SyntaxHighlight
m (→‎Create Users: Added SyntaxHighlight)
m (→‎Display Users: Added SyntaxHighlight)
Line 26: Line 26:
=== Display Users ===
=== Display Users ===
To display all configured users;
To display all configured users;
* <code> <nowiki> SELECT CONCAT('SHOW GRANTS FOR \'', user ,'\'@\'', host, '\';') FROM mysql.user </nowiki></code>
<source lang="mysql">
SELECT CONCAT('SHOW GRANTS FOR \'', user ,'\'@\'', host, '\';') FROM mysql.user  
</source>
Then use the displayed lines to see the detail of each user
Then use the displayed lines to see the detail of each user


Navigation menu