方法一:在mysql>提示符中使用tee
mysql> tee F:\php_demo\mysql\sqltext.txt
Logging to file 'F:\php_demo\mysql\sqltext.txt'
退出
mysql> notee
Outfile disabled.
方法二 : 在mysql>提示符中使用\T
mysql> \T F:\php_demo\mysql\sqltext.txt
Logging to file 'F:\php_demo\mysql\sqltext.txt'
退出
mysql> \t
Outfile disabled.
网友评论