I am using MySQL Workbench 5.2.37 and I find it a great tool for database development.
I did create all the tables, fields and relationships and I also did document (adding a comment for every field with their functionality, same for relationships and tables).
I would like to export just this documentation. I mean, not the SQL scripts but the metadata I did put for the table and its fields.
Something like:
Table: Customers
Comment: Represent the customers of the system
Fields:
id (INTEGER not null, unique): The customer unique identifier
name (VARCHAR[100] not null, unique): The customer name
…
Does anybody know if extracting such a report is possible?
I’m guessing that you have the community edition of MySQL Workbench?
I would think that documenting the database by CREATE statements would be close enough to what you are trying to achieve.
Select all tables in your schema (SQL Editor View), right-click and select ‘Send to SQL Editor’ -> Create Statement.
You could then save a file which consists of every table in your database.
Example:
If you happen to have the standard edition (commercial) there are some features which might be right up your alley :
http://www.mysql.com/products/workbench/features.html