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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I tell...InnoDb or MyISAM?

Status
Not open for further replies.

gharabed

Programmer
Sep 7, 2001
251
US
I am relatively new to mySQL but have a lot of Oracle administration experience. My question is...how do I tell if a table was created using the InnoDB or MyISAM storage engine? By the way, I am running MySQL 4.1. Is there a data dictionary I can query to see the various attributes of each table?
 
You can use the "describe" action to get information on the table's fields or attributes.

describe 'tablename'

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Sure you can use describe, but describe doesn't tell you which engine (innodb or myIsam) is being used.
 
No, but you already told him how to get the engine. I was just adding the o option of using describe to get the fields. Obviously the Show Create Table also shows the fields


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top