Bug #27246 Windows: mysql_real_connect should get username of current process if not specif
Submitted: 18 Mar 2007 10:13 Modified: 5 Dec 2007 18:56
Reporter: Georg Richter Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S4 (Feature request)
Version:all OS:Windows (Windows)
Assigned to: CPU Architecture:Any

[18 Mar 2007 10:13] Georg Richter
Description:
According to the documentation the default user is assumed, when passing NULL or empty string for user in mysql_real_connect.

On Windows platforms function read_user_name checks for environment variable USER.  If it's not defined default user "ODBC" will be assumed.

How to repeat:
-

Suggested fix:
call Windows-API function GetUserName to get username of current process.
[21 Mar 2007 0:34] MySQL Verification Team
Thank you for the bug report.