用mysql命令将查询结果导出到xml和html,真是方便。
$mysql --help|grep -E 'xml|html'
-H, --html Produce HTML output.-X, --xml Produce XML output.
html FALSE
xml FALSE
$mysql -uroot -p --html -e 'select user,password from mysql.user'>user.html
$mysql -uroot -p --xml -e 'select user,password from mysql.user'>user.xml