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!

Determining Engine across multiple databaes

Status
Not open for further replies.

gharabed

Programmer
Sep 7, 2001
251
US
I have multiple servers with multiple databases on each server. Before putting my physical backup strategy together I need to know which engine is being used for each table in each database on each server in order to be sure the backups are being done properly. What would be the easiest way to get a listing of each table in each database with the engine being used for each?

I've started to do this manually and it is a bit of a pain as I am having to go through each db and do a "show create table" for each table. This seems to be a bit of a pain. Is there some sort of script or query I can run against each db (I should say this is mySQL 4.1) to give me a listing of each table and the engine being used for each?

Thanks!
 
Right, but I don't wan't all of the other columns...just a listing of the tables and the engine. I think I found the answer to my own question...I am using the following OS command:

mysql -u root <dbname> -e 'show table status;' | awk '{ print $1 " - " $2;}'

This lists the table name, a ' - ', and the engine being used.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top