Bug #29060 init_connect is not session variable
Submitted: 12 Jun 2007 20:41 Modified: 13 Jun 2007 13:13
Reporter: Todd Farmer (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:5.0.42 OS:Any
Assigned to: Peter Lavin CPU Architecture:Any

[12 Jun 2007 20:41] Todd Farmer
Description:
The documentation for server configuration options (http://dev.mysql.com/doc/refman/5.0/en/mysqld-option-tables.html) indicates that init_connect is both session and global scoped:

init_connect 	Y 	Y 	Y 	  	*both* 	no

This is not true:

mysql> select @@session.init_connect;
ERROR 1238 (HY000): Variable 'init_connect' is a GLOBAL variable

How to repeat:
select @@session.init_connect;

Suggested fix:
Update documentation to indicate this is global only.
[13 Jun 2007 13:13] Peter Lavin
Documentation changed, thanks Todd.