MySql SSH With Login from C#
Posted by: Hassanein Hassan
Date: March 11, 2021 03:39AM

I created a login for my program via mysql, connect to mysql using my ssh server. I created the user and granted them permission to enter, but it seems to me that it is unable to contact any of the specified mysql hosts when I try to log in. I am 100% sure the problem is not due to my software because previously mysql is running ssh and the connection is working but this time it looks like i missed something i use centos linux

The problem that appears to me when logging into my program

MySql.Data.MySqlClient.MySqlException: 'Unable to connect to any of the specified MySQL hosts.'

Mind the problem due to the connection. When I use MySQL Workbench 8.0 CE, it works and everything is fine. I can create a table and add information to it.

Options: ReplyQuote

Written By
MySql SSH With Login from C#
March 11, 2021 03:39AM

Sorry, only registered users may post in this forum.

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.