MySQL Error :SHOW PROFILES

在使用SQLyog Enterprise V8.1 英文版的时候,执行一个sql 语句,总会先弹出一个对话框,显示如下信息:

1
2
3
Error number:1289
Error message:
The 'SHOW PROFILES' feature is disabled; you need MySQL built with 'enable-profiling' to have it working


意思呢就是说编译时没有激活enable-profiling选项。
其实你点击了Ok以后,sql语句会正常执行。只不过每次都点,让人觉得很烦。

终于找到了原因:
1 MySQL从5.0.37起,提供了profile的功能。
2 我的MySQL是5.0.17,而我的SQLyog是8.1。
3 在SQLyog8.1中,默认的是对profile提供支持的,也就是说有其对各中参数的设置。

所以呢,解决方法就在SQLyog中找。
tools -> preferences -> power tools ->Enables Query Fifles 中,去掉 show profiles 前面的勾即可。

这位老兄说的比较详细,可以看一下:
【http://www.ourmysql.com/archives/785】

原文地址:https://www.cnblogs.com/lan0725/p/1874011.html