how to print the mysql shell output table
<p>in mysql shell print a table like this   </p>

<p>[code][1] </p>

<pre><code>mysql&gt; show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| PROXY              |
| bbs_bj             |
| bbs_bj_copy        |
| mysql              |
| octopus            |
| octopus_cp         |
| spider             |
+--------------------+
</code></pre>

<p>i want to print this table to the  printer keep right formate<br>
is there any python package lib to hand this<br>
or have some way to change the table to html and pdf ?</p>
