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

Cannot coonect to remote DB via .net con (no replies)

$
0
0
I have setup mysql on a Raspberry PI. I set it up to allow remote connection, created a user that I granted all rights to on all databases. I am able to remotely connect to the database with a non .net client such as Heidi SQL. I am using Sharpdevelop and the latest connector for .net. When my app tries to connect I get the following error:

MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.

My connection string looks like this:

"Server=192.168.1.252;Database=my_db;Uid=my_user;Pwd=mypwd;"

Really stuck on this one.

Viewing all articles
Browse latest Browse all 1447

Trending Articles



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