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>

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.