Bug #16497 MySQL Server for Win32 doesn't accept incoming *NIX-based telnet sessions
Submitted: 13 Jan 2006 21:32 Modified: 16 Jan 2006 12:58
Reporter: Ty Schalter Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.0.18 OS:Windows (Windows Server 2003)
Assigned to: MySQL Verification Team CPU Architecture:Any

[13 Jan 2006 21:32] Ty Schalter
Description:
What I did:
Attempted to connect to server via telnet and run MySQL interactively from the command line.  Server is Windows 2003, running MySQL for Win32.  Server is also running Interix (Windows Services for Unix).  With multiple clients, tried to use interactive mode with the MySQL command line client, the Korn shell, the Windows DOS command line, and PuTTy.

What I expected to happen: 
On any OS, with any client, after succesful telnet connection is built, mysql.exe allows execution with login from the command line.

What actually happened:
When a client telnets to the server and attempts to invoke mysql.exe from the command line, it fails with the following: " (Unable to read --unknown error (error:9))".  When running locally, all of the above utilities work as expected.

How to repeat:
Install MySQL 5.0.18 and Interix SFU onto a Windows 2003 box.  From another computer, bring up PuTTY or ksh and telnet to the server via the command line.  Navigate to the MySQL directory, and attempt to log in to MySQL via the command: ''mysql.exe -u user -ppassword''.

Suggested fix:
There is something funny between SFU (specifically SFU's telnet server) and MySQL.  I am currently attempting to compile MySQL's source inside Interix and run it as an Interix app, but I have not yet been successful.  Workarounds for now include using remote desktop software to run interactive mode from a local command prompt, and kicking everything off from scripts and avoiding interactive mode altogether.
[14 Jan 2006 9:26] MySQL Verification Team
Thank you for the bug report. The problem here isn't the server but the
mysql client which is a Win32 console application for to work under a
DOS prompt session. I tested from a Suse Linux against Windows XP using
telnet and ssh and the client not works as expected.
[16 Jan 2006 12:58] Ty Schalter
I'm not sure I understand.  You said that the client "not works as expected"--did you replicate the problem, or was that a typo?  Also, with the Windows XP test box, did you install SFU and enable the UNIX telnet server?  That is how my box is configured.

Thanks,
Ty