SQL/MySQL/User Permission/Grant — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 10:17, 26 мая 2010
Verify the grant
/*
mysql> /* Verify the grant. */
mysql> SHOW GRANTS FOR Joe@"%";
+------------------------------------------------------------+
| Grants for Joe@%
|
+------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO "Joe"@"%" IDENTIFIED BY PASSWORD "*F321704F1412
6CFD84206702826EAF46D265E927" |
+------------------------------------------------------------+
1 row in set (0.01 sec)
*/
/*
Create a user named Joe with the password Joe552 and
grant all privileges when logging in from any host.
*/
GRANT ALL ON *.* TO Joe@"%" IDENTIFIED BY "Joe552";
/* Verify the grant. */
SHOW GRANTS FOR Joe@"%";