最近在学习python相关技术。主要跟随黑马程序员的B站python视频在学。
感兴趣的可以关注我,大家一起学习啊。
sudo vim /etc/mysql/my.cnf
sudo service mysql restart
sudo tail -f /var/log/mysql/mysql.log
查看是否打开日志:
mysql> show variables like 'log%';
±--------------------------------±-------------------------+
| Variable_name | Value |
±--------------------------------±-------------------------+
| log | ON |
| log_bin | ON |
| log_bin_trust_function_creators | OFF |
| log_error | /var/log/mysql/error.log |
| log_output | FILE |
| log_queries_not_using_indexes | OFF |
| log_slave_updates | OFF |
| log_slow_queries | ON |
| log_warnings | 1 |
±--------------------------------±-------------------------+