Sunday, 15 March 2015

c# - Connect WPF App to MySQL DataBase on ipage server -


I have the database on the ipapa server. I use the data in the WPF app to connect to DB through Visual Studio 2013 I'm trying to, but every time an error is "unable to connect to any specified MySQL host." What do I have to do to reach DB?

Using MySQL Data Provider, WIN8.1

Thx too much.

Do you control the server, is it Linux-based? If so, check /etc/mysql/my.cnf - My own default installation is Bind-Address = 127.0.0.0, which was accepting connections only from the local machine. This is fine for PHP scripts, but not for remote access. I have set my set to 0.0.0.0 - accept connections from anywhere. It works in the training environment - you can prepare it for tightening for safety.


No comments:

Post a Comment