mysql查看触发器错误(开启general_log日志)

show variables like 'general_log'; -- 查看日志是否开启

set global general_log=on; -- 开启日志功能

show variables like 'general_log_file'; -- 看看日志文件保存位置

set global general_log_file='tmp/general.lg'; -- 设置日志文件保存位置

show variables like 'log_output'; -- 看看日志输出类型 table或file

set global log_output='table'; -- 设置输出类型为 table

set global log_output='file'; -- 设置输出类型为file

general_log:https://blog.csdn.net/u010735147/article/details/81871560

binlog:https://blog.csdn.net/Abysscarry/article/details/79949480

猜你喜欢

转载自blog.csdn.net/myfmyfmyfmyf/article/details/103351011
今日推荐