MySQL, /etc/mysql/my.cnf Ubuntu. , " "
log = /var/log/mysql/mysql.log
mysql, OUT
general_log_file = /var/log/mysql/mysql.log
general_log = 1
log_error = /var/log/mysql/error.log
"log", . MySQL : sudo/etc/init.d/mysql restart
Now we were ready to begin monitoring requests as they arrived. Open a new terminal and run this command to scroll through the log file, adjusting the path if necessary.
tail -f /var/log/mysql/mysql.log
source
share