View Live MySQL Queries via SSH

Implementation

Add these lines into your /etc/my.cnf

[mysqld]
general_log=1
general_log_file=/tmp/mysqld.log

Restart MySQL

/usr/local/cpanel/scripts/restartsrv_mysql

Then check your log via SSH

tail -f /tmp/mysqld.log

Leave a Reply

Your email address will not be published. Required fields are marked *