my.cnf配置文件参数设置: [root@cacti ~]# head -7 /etc/my.cnf [mysql] prompt="(\\u@\\h:\R:\m:\\s)[\\d]> " pager="less -i -n -S" tee="/tmp/query.log" no-auto-rehash
[mysqld] 配置文件参数介绍: 这样就能很方便的知道当前位于哪个mysql
db上,正在以哪个用户登录,对哪个数据库进行操作,防止误操作;并且还能显示当前时间。
【mysql】 【Oracle】 【LOG】 【配置】 【Server】 …