1. Open the mysql configuration file , the comment lines 68, 69 cancel, save and close
2. Restart the mysql service
sudo service mysql restart
3, the log file directory
/var/log/mysql/mysql.log
4. Check the log files in real time
sudo tail -f /var/log/mysql/mysql.log
Test: execute a query
result
Reproduced indicate the source: https://www.cnblogs.com/jum-bolg/p/11349590.html