Bug #11174 default hostname under Win64 is always mysql
Submitted: 8 Jun 2005 16:01 Modified: 27 Jul 2005 22:44
Reporter: Georg Richter Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version: OS:
Assigned to: Georg Richter CPU Architecture:Any

[8 Jun 2005 16:01] Georg Richter
Description:
After building a first prototype of Winx64 version I just saw that the .pid and .err files always have the name mysql.

In file mysqld.cc function main() calls gethostbyname() via function init_common_variables without calling WSAStartup before. WSAStartup is called later in function server_init.

How to repeat:
.

Suggested fix:
Remove WSAStartup from server_init function and add it on top of main function.
[8 Jun 2005 17:21] Jorge del Conde
Verified w/WinXP 64 & AMD64
[15 Jun 2005 7:29] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/26012
[27 Jul 2005 22:44] Mike Hillyer
Documented in 5.0.8 changelog:

<listitem><para>Default hostname for MySQL server was always <literal>mysql</literal>. (Bug #11174)</para></listitem>