Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Connection String anomaly (no replies)

$
0
0
As a newcomer, I dutifully scanned earlier posts but could not find direct suggestion/recommendation for my anomaly. The connection from a client app (in Windows 10 using the current MySQL Connector/.NET assembly) fails to find the server on a Debian box. However, the MySQL client on the Windows 10 box can logon to the server via command line.

Bind-address has been set to 0.0.0.0 and the "ping" command works from the Windows client to the Debian server.

The "new MySqlConnection" method raises exception error code 1402 ER_BAD_HOST_ERROR when the following connection string is used:
server=192.168.1.2;database=HA;user=xxxx;password=xxxx;port=3306

The exception error code 0 is raised when the following connection string is used:
server=myserver;database=HA;user=xxxx;password=xxxx;port=3306

The command line access works with -h 192.168.1.2
but not with -h myserver.

What other logging or debug steps can I take to resolve this anomaly? Debian client to Debian server (presumably owing to non-TCP connectivity) work fine with C and Python client apps.

Thanks for any guidance/suggestion.

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>