Home > Backend Development > PHP Tutorial > 怎么把程序文件中的所有sql语句及每句sql语句的运行时间显示出来

怎么把程序文件中的所有sql语句及每句sql语句的运行时间显示出来

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:44:11
Original
1001 people have browsed it

如何把程序文件中的所有sql语句及每句sql语句的运行时间显示出来?
php+mysql



------解决方案--------------------
如果你是要分析sql运行情况,
那么看mysql手册的“The Slow Query Log”一节吧,
然后分析log文件就行



------解决方案--------------------
数据库连接类里面的调试模式吧

好像adodb有
------解决方案--------------------
可以考虑下phpbb3中的代码

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
Latest Issues
sql file
From 1970-01-01 08:00:00
0
0
0
php - Overhead of prepare vs sql?
From 1970-01-01 08:00:00
0
0
0
Print sql statement
From 1970-01-01 08:00:00
0
0
0
Pass array to SQL insert query using PHP
From 1970-01-01 08:00:00
0
0
0
sql optimization or
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template