Bug #11174 default hostname under Win64 is always mysql
Submitted: 8 Jun 2005 18:01 Modified: 28 Jul 2005 0:44
Reporter: Georg Richter
Status: Closed
Category:Server Severity:S3 (Non-critical)
Version: OS:
Assigned to: Georg Richter Target Version:

[8 Jun 2005 18: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 19:21] Jorge del Conde
Verified w/WinXP 64 & AMD64
[15 Jun 2005 9: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
[28 Jul 2005 0: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>