查看mysql自己日志
1,首先是登录mysql,如下所示:
[root@ddi ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 323
Server version: 8.0.14 MySQL Community Server - GPL
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
2,查看mysqlbinlog 日志路径,如下图所示
mysql> show variables like '%datadir%';
+---------------+-------------------------+
| Variable_name | Value |
+---------------+-------------------------+
| datadir | /home/mysql/mysql/data/ |
+---------------+-------------------------+
1 row in set (0.03 sec)
3,退出mysql用户,cd 到mysqlbinlog路径`
[root@ddi ~]# cd /home/mysql/mysql/data/
[root@ddi data]# ll
total 1767364
drwxr-x---. 2 mysql mysql 6 May 12 15:34 activiti
drwxr-x---. 2 mysql mysql 4096 Apr