[MDEV-6739] client doesn't report correct error (10061 "Unknown error") Created: 2014-09-12  Updated: 2022-09-08

Status: Open
Project: MariaDB Server
Component/s: Platform Windows
Affects Version/s: 5.5.39, 10.0.13
Fix Version/s: 10.1

Type: Bug Priority: Minor
Reporter: sbester1 Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Windows 7



 Description   

Why does mysql monitor mention an "Unknown error" here?
Either print the correct error or no error string

C:\mariadb-10.0.13-winx64\bin>mysql -h127.0.0.1 -P123
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (10061 "Unknown error")
 
C:\mariadb-10.0.13-winx64\bin>perror 10061
Win32 error code 10061: No connection could be made because the target machine actively refused it.



 Comments   
Comment by sbester1 [ 2014-09-12 ]

Linux is okay:

[sbester@fc17 mariadb-10.0.13-linux-x86_64]$ ./bin/mysql -h127.0.0.1 -P123
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111 "Connection refused")

Generated at Thu Feb 08 07:14:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.