Quantcast
Channel: 码农网 » mysql
Viewing all articles
Browse latest Browse all 11

mysql查看sql语句执行历史记录

0
0

mysql查看sql语句执行历史记录

 cat ~/.mysql_history 

对于mysql版本5.1以后的版本,可以通过以下方式启动日志记录。能够记录下包括应用程序执行的sql语句。

MariaDB [(none)]> SET GLOBAL log_output = '[......]

Read more


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images