Home > Database > Mysql Tutorial > body text

How to view mysql log files

coldplay.xixi
Release: 2020-10-09 14:26:40
Original
8193 people have browsed it

How to view the mysql log file: first open the mysql log and remove the comments in front of lines 68 and 69; then restart mysql [sudo service mysql restart]; finally monitor the mysql log.

How to view mysql log files

How to view the mysql log file:

Open the mysql log

/etc/mysql/mysql.conf.d/mysqld.cnf

sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
Copy after login

Find the comments in front of lines 68 and 69 and remove them

How to view mysql log files

Then restart mysql

sudo service mysql restart
Copy after login

Listen to mysql log

sudo tail -f /var/log/mysql/mysql.log
Copy after login

How to view mysql log files

Related free learning recommendations: mysql number Database(Video)

The above is the detailed content of How to view mysql log files. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template