If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Show Grants

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-04, 01:55
neema neema is offline
Registered User
 
Join Date: Feb 2004
Location: inida
Posts: 62
Show Grants

Hi,

Plz see the below statements

mysql> show databases;
+----------+
| Database |
+----------+
| abcd |
| mysql |
| test |
+----------+
3 rows in set (0.00 sec)

mysql> use abcd;
Database changed
mysql> show grants for root@localhost;
+-------------------------------------------------------------------------| Grants for root@localhost |
+-------------------------------------------------------------------------| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
| GRANT ALL PRIVILEGES ON `x`.* TO 'root'@'localhost' WITH GRANT OPTION
+-------------------------------------------------------------------------2 rows in set (0.01 sec)

Here i wanated to know why to grant have displayed, what is this 'x'??
is it a user? Im working in an existing sytem.In my knowldge there is supposed to have only the first line. Can anybody tell me whats this 'x'?

thanx.
Reply With Quote
  #2 (permalink)  
Old 12-07-04, 03:15
codenode codenode is offline
Registered User
 
Join Date: Dec 2004
Posts: 26
`x` is, or was, a database. You can grant privileges on nonexistent databases, and when you remove a database it does not remove associated privileges.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On