Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need SELECT showing list of MySQL Data Dictionary objects

Status
Not open for further replies.

DeepDiverMom

Programmer
Joined
Jul 28, 2003
Messages
122
Location
US
I'm a MySQL newbie. I have a good deal of Oracle DBA experience. In Oracle, if I issue this SELECT:

SELECT object_name
from DBA_OBJECTS
where owner = 'SYS'
and object_name like 'DBA%';

...I get a listing of such helpful DBA views as:
DBA_USERS (all installation users)
DBA_TABLES (all tables no matter owner/schema)
DBA_VIEWS (all views no matter owner/schema)
et cetera

What query can I issue in MySQL that gives me the equivalent listing of data dictionary views for MySQL?
 
You might take a look at MySQL's SHOW and DESCRIBE commands:


User information on MySQL is stored in the "mysql" database on your server. A description of what can be found there is available here:
Want the best answers? Ask the best questions: TANSTAAFL!!
 
Well, as Mysql does not support views you can't use a select statement to get the information. Take a look at the show command in the docs at
 
Thanks "sleipnir214" and "swampBoogie". I've read those docs and found that with the commands:
"USE mysql"
"show tables"
...that MySQL's equivalent of its data dictionary is composed of six tables:
columns_priv
db
func
host
tables_priv
user
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top