Print table documentation with comments?
You can do this with normal DML/DDL.

Create a table with comments:

mysql&gt; create table testcomments ( 
    -&gt; col1 integer comment 'comment on integer column',
    -&gt; col2 varchar(20) comment 'comment on varchat col');
Query OK, 0 rows affected (0.01 sec)


Select the information from the data dictionary (documentation link):

mysql&gt; select column_name, column_comment
    -&gt; from INFORMATION_SCHEMA.COLUMNS
    -&gt; where TABLE_NAME = 'testcomments';
+-------------+---------------------------+
| column_name | column_comment            |
+-------------+---------------------------+
| col1        | comment on integer column |
| col2        | comment on varchat col    |
+-------------+---------------------------+
2 rows in set (0.00 sec)

mysql&gt;


Add/modify a comment:

mysql&gt; alter table testcomments
    -&gt; change column col1
    -&gt; col1 integer comment 'modified comment on integer column';

Query OK, 0 rows affected (0.01 sec)
Records: 0  Duplicates: 0  Warnings: 0

mysql&gt; select column_name, column_comment  from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'testcomments';
+-------------+------------------------------------+
| column_name | column_comment                     |
+-------------+------------------------------------+
| col1        | modified comment on integer column |
| col2        | comment on varchat col             |
+-------------+------------------------------------+
2 rows in set (0.00 sec)

mysql&gt;


Modify a table comment:

mysql&gt; alter table testcomments comment 'foo';
Query OK, 0 rows affected (0.01 sec)
Records: 0  Duplicates: 0  Warnings: 0

mysql&gt;


View a table comment:

mysql&gt; select TABLE_COMMENT
    -&gt; from INFORMATION_SCHEMA.TABLES
    -&gt; where TABLE_NAME = 'testcomments';
+---------------+
| TABLE_COMMENT |
+---------------+
| foo           |
+---------------+
1 row in set (0.00 sec)

mysql&gt;