Home > Database > Mysql Tutorial > mysql命令行下的--tee选项功能_MySQL

mysql命令行下的--tee选项功能_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:39:02
Original
1739 people have browsed it

bitsCN.com


mysql命令行下的--tee选项功能

 

假如mysql命令行状态下,要进行大量的交互操作,其实可以把这些操作记录

 

在log中进行审计,很简单 mysql -u -root -p --tee=c:/xxxx.log ,加上参数

 

--tee就可以了,这是一个不大常用的命令选项,也可以:  

 

在服务器上的/etc/my.cnf中的[client]加入 

 

tee =/tmp/client_mysql.log即可.
 

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template