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 > Data Dictionary

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-24-04, 16:30
RCAV8OR RCAV8OR is offline
Registered User
 
Join Date: Sep 2003
Posts: 6
Question Data Dictionary

Hi all,
I'm from the DB2 world, new to MySQL, and would like to know about the Data Dictionary. From reading the documentation it looks like the Data Dictionary consists of tables that hold data about the MySQL databases and tables. Is that similar to the system catalog tables in DB2?

Thanks,
Reply With Quote
  #2 (permalink)  
Old 03-25-04, 10:16
bstjean bstjean is offline
Registered User
 
Join Date: Sep 2002
Location: Montreal, Canada
Posts: 219
Re: Data Dictionary

Quote:
Originally posted by RCAV8OR
Hi all,
I'm from the DB2 world, new to MySQL, and would like to know about the Data Dictionary. From reading the documentation it looks like the Data Dictionary consists of tables that hold data about the MySQL databases and tables. Is that similar to the system catalog tables in DB2?

Thanks,
No... Not yet at leat but you can extract most of this information through DESCRIBE, SHOW TABLE STATUS, SHOW INDEX and other SHOW statements...

http://www.mysql.com/doc/en/SHOW.html

But you won't find that info in a table or a view... Not for now at least...
Reply With Quote
  #3 (permalink)  
Old 03-25-04, 11:38
RCAV8OR RCAV8OR is offline
Registered User
 
Join Date: Sep 2003
Posts: 6
Okay, thanks bstjean. The show statements are helpful. But I guess I don't understand what the Data Dictionary tables are used for, if they don't hold the data about the tables/databases that I create.
Reply With Quote
  #4 (permalink)  
Old 03-27-04, 18:00
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Quote:
Originally posted by RCAV8OR
Okay, thanks bstjean. The show statements are helpful. But I guess I don't understand what the Data Dictionary tables are used for, if they don't hold the data about the tables/databases that I create.
MySQL has not data dictionary.
Reply With Quote
  #5 (permalink)  
Old 03-29-04, 11:45
RCAV8OR RCAV8OR is offline
Registered User
 
Join Date: Sep 2003
Posts: 6
Question

Hello ika,
In the MySQL Manual they talk about the Data Dictionary in:
http://www.mysql.com/doc/en/Table_and_index.html

Do you mean that there are no System Catalog tables?

What are the tables in database MySQL used for?
mysql> use mysql;
Database changed
mysql> show tables;
+-----------------+
| Tables_in_mysql |
+-----------------+
| columns_priv |
| db |
| func |
| host |
| tables_priv |
| user |
+-----------------+

When I create a new database a row isn't added to the db table.
Reply With Quote
  #6 (permalink)  
Old 03-29-04, 12:45
aus aus is offline
Registered User
 
Join Date: Oct 2003
Location: Denver, Colorado
Posts: 137
The mysql database is used for permissions. An entry in the db table allows or denies specific permissions to certain users or hosts on the database level. The data dictionary is accessed only by using the SHOW and DESCRIBE syntax.
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