By default, “mysql” returns query output in text table format. If you want to receive query output in HTML format, you need to use the “-H” command option. Here is a good tutorial exercise:

>cd \mysql\bin
>mysql -u root -H test

mysql> SELECT * FROM links;
<TABLE BORDER=1><TR><TH>id</TH><TH>name</TH></TR>
2 rows in set (0.00 sec)

Post By Editor (2,827 Posts)

Website: →