在哪里可以找到phpmyadmin界面中的mysql日志(错误,查询等)?
答案 0 :(得分:24)
我和@rutherford有同样的问题,今天新的phpmyadmin的3.4.11.1 GUI是不同的,所以我发现如果有人用更新的信息改进答案会更好。 完整的mysql日志可以在:
中找到“状态” - >“二进制日志”
这就是答案,如果您正在使用MAMP,XAMPP,LAMP,ecc,这无关紧要。
答案 1 :(得分:20)
打开您的PHPMyAdmin,不要选择任何数据库并查找Binary Log
标签。
您可以从下拉列表中选择不同的日志,然后按GO
按钮查看它们。
答案 2 :(得分:11)
I am using phpMyAdmin version 4.2.11. At the time of writing, my Status
tab looks like this (a few options expanded; note "Current settings", bottom right):
Note, there are no directly visible "features" that allow for the enabling of things such as slow_query_log
. So, I went digging on the internet because UI-oriented answers will only be relevant to a particular release and, therefore, will quickly become out of date. So, what do you do if you don't see a relevant answer, above?
As this article explains, you can run a global query to enable or disable the slow_query_log
et al. The queries for enabling and disabling these logs are not difficult, so don't be afraid of them, e.g.
SET GLOBAL slow_query_log = 'ON';
From here, phpMyAdmin is pretty helpful and a bit of Googling will get you up to speed in no time. For instance, after I ran the above query, I can go back to the "Instructions/Setup" option under the Status tab's Monitor
window and see this (note the further instructions):
答案 3 :(得分:9)
在phpMyAdmin 4.0中,您转到状态>监控。在那里,您可以启用慢查询日志和常规日志,查看实时监视器,选择图形的一部分,查看相关查询并进行分析。
答案 4 :(得分:2)
如果您使用XAMPP作为服务器,您将找到一个日志目录作为XAMPP目录的子目录。如果您还没有尝试在任何系统(Windows,Mac OS和Linux)上运行的XAMPP,请在此处找到更多信息:http://www.apachefriends.org/en/xampp.html
答案 5 :(得分:0)
使用performance_schema数据库和表:
查看手册here