When connecting to mysql server with ‘-H’, all query result will be in html format(only on the command line console), but when i save the result into file using “select… into outfile xxx”, it is not in html format in the file. How to proceed?
Share
You can use SQLyog for this purpose. Follow simple steps…
Execute the query, from results tab, click on “Export as”(see screenshot attached), select to export as HTML, and give the file name in which you would like to export and then click on Export Button. Data will be exported.
You can use command line tool for each query as follows(Note: path to MySQL should be set):
I tried by first connecting with -H, and then using outfile, but it did not worked that way. It works as follows
Hope it helps…