mysql开启general_log查看执行sql

1.查看是否打开

SHOW variables like "%general_log%";

  

2.打开

set global general_log=On

 3.查看sql执行

tail -f /var/lib/mysql/4d27ad4bbe3e.log

  

猜你喜欢

转载自www.cnblogs.com/chenqionghe/p/9901576.html
今日推荐