Verify the grant : Grant : User Permission SQL / MySQL


SQL / MySQL » User Permission » Grant »

 

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' |
+------------------------------------------------------------+
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@'%';
           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

SQL / MySQL

 Navioo User Permission
» Grant