ubuntu 开启mysql日志记录
1.找到mysql的配置文件sudo vim /etc/mysql/my.cnf将下面两行的#去掉#general_log_file = /var/log/mysql/mysql.log#general_log = 12.重启mysql服务sudo service mysql restart3.实时查看tail -f /var/log/mysql/mysql.log