Home Sql Mysql-example Mysql Permission

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Permission

Advertisement
Mysql Permission allows the user to connect to the database, Mysql checks and use that the particular username/ password and combination has the permission to connect.

Mysql Permission

     

Mysql Permission allows the user to connect to the database, Mysql checks and use that the particular username/ password and combination has the permission to connect. All user /host/password combination are listed in this table before any access can be granted.

Understand with Example

The  Tutorial illustrate an example from 'Mysql Permission'. To understand and grasp example we use the query show grants that grant the permission to all the user to access the listed table in database of local host. The password is specified in a encrypted format.

Query:-

mysql> show grants;

Output:-

+----------------------------------------------------------------------------------------------------------------------------------------+
| Grants for root@localhost                                                                                                              |
+----------------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*81F5E21E35407D884A6CD4A731AEBFB6AF209E1B' WITH GRANT OPTION |
+----------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)
Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 24, 2009

Related Tutorials

Discuss: Mysql Permission  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com