查看mysql8的log位置
如下:
mysql> show variables like 'general_log_file';
+------------------+-----------------------------+
| Variable_name ? ?| Value ? ? ? ? ? ? ? ? ? ? ? |
+------------------+-----------------------------+
| general_log_file | /var/lib/mysql/ubuntu19.log |
+------------------+-----------------------------+
1 row in set (0.02 sec)
mysql>?
###############################################################
mysql> show variables like 'log_error';
+---------------+--------------------------+
| Variable_name | Value ? ? ? ? ? ? ? ? ? ?|
+---------------+--------------------------+
| log_error ? ? | /var/log/mysql/error.log |
+---------------+--------------------------+
1 row in set (0.01 sec)
###############################################################
mysql> show variables like 'slow_query_log_file';
+---------------------+----------------------------------+
| Variable_name ? ? ? | Value ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
+---------------------+----------------------------------+
| slow_query_log_file | /var/lib/mysql/ubuntu19-slow.log |
+---------------------+----------------------------------+
1 row in set (0.00 sec)
?
總結(jié)
以上是生活随笔為你收集整理的查看mysql8的log位置的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: pymysql.err.Internal
- 下一篇: linux下面mysql不监听3306