If you have access to the mysqldump program you could use a system function e.g. [man]system[/man], [man]exec[/man] etc to use that, otherwise you will need to view tables within the database, then what fields and field types and indexes are in each table and followed by what records are in the table.