Unknown system variable ‘profiling’

报告了MySQL5.1.28版本在Windows平台上缺少Profiling特性的问题,该特性在Solaris版本中正常可用。通过设置变量启用Profiling功能时,Windows版本返回未知系统变量错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[url]http://bugs.mysql.com/bug.php?id=40542[/url]
[url]http://dev.mysql.com/doc/refman/5.1/en/news-5-1-28.html[/url]

[6 Nov 2008 10:20] Shane Bester

Description:
According to the 5.1.28 change history, profiling feature should be included.
Solaris build contained the feature, but not windows build:

on windows 5.1.28:

mysql> set profiling=1;
ERROR 1193 (HY000): Unknown system variable 'profiling'
mysql> show global variables like '%profil%';
Empty set (0.00 sec)

on solaris 5.1.28:

mysql> show global variables like '%profil%';
+------------------------+-------+
| Variable_name | Value |
+------------------------+-------+
| profiling | ON |
| profiling_history_size | 15 |
+------------------------+-------+

How to repeat:
[url]http://dev.mysql.com/doc/refman/5.1/en/news-5-1-28.html[/url]

"Added the SHOW PROFILES and SHOW PROFILE statements to display statement profile data"

"These options are enabled by default;"...

set profiling=1;


Suggested fix:
windows is a major platform, and this feature must be implemented/built in these builds.

[6 Nov 2008 10:44] Valeriy Kravchuk

Verified with 5.1.29 also:

C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql -uroot -proot -P3310 test
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.29-rc-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> set profiling=1;
ERROR 1193 (HY000): Unknown system variable 'profiling'
mysql> show global variables like '%profil%';
Empty set (0.16 sec)

mysql> show profile;
ERROR 1289 (HY000): The 'SHOW PROFILE' feature is disabled; you need MySQL built
with 'enable-profiling' to have it working
mysql>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值