手册上介绍:(SHOW PROFILES and SHOW PROFILE were added in MySQL 5.0.37. ) Important Please note that the SHOW PROFILE and SHOW PROFILES functionality is part of the MySQL 5.0 Community Server only. 2、变量profiling是用户变量,每次都得重新启用。 以下是我做的一些实验。数据很明显,就不多解释了。 mysql> use test Database changed mysql>set profiling=1; Query OK, 0 rows affected (0.00 sec)