I log into mysql like normal but whenever I enter a command such as describing a table:
DESCRIBE status_types;
I get text back that is markup-ish, like an HTML table instead of the usual text table.
<TABLE BORDER=1><TR><TH>Field</TH><TH>Type</TH><TH>Null</TH><TH>Key</TH><TH>Default</TH><TH>Extra</TH></TR><TR><TD>status_type</TD><TD>varchar(32)</TD><TD>NO</TD><TD>PRI</TD><TD></TD><TD></TD></TR><TR><TD>pic_url</TD><TD>varchar(128)</TD><TD>YES</TD><TD></TD><TD>NULL</TD><TD></TD></TR></TABLE>2 rows in set (0.01 sec)
I suspect that it could have something to do with the shell not rendering it correctly. I am
using bash.
Has this happened to anyone else?
The mysql client outputs HTML format if you give it the
-Hor--htmlflags, or if you specifyhtmlin the[mysql]or[client]sections of your my.cnf file.See http://dev.mysql.com/doc/refman/5.1/en/mysql-command-options.html#option_mysql_html
If you’re connecting remotely, perhaps you gave the
-Hflag when you meant to give the-hflag to specify the server hostname?