0

Hello everybody i have a MySQL connection problem in C#. This is my problem in the picture. thanks for help me. Picture

0

What a hideous sidebar, hahaha, I'm sorry.

The problem is that the MySQL client in your C# program cannot connect to the MySQL server. Are you able to log into the MySQL server yourself? You may be connecting from another machine with a user that is only locally available.

Please check the permissions/credentials of the user you're trying to log in to your server as.

Also check that the server is online, and on what ip/host/domain/port it is running.

This is a typical connection problem. There is nothing wrong with MonoDevelop, or the libraries it uses. It is your configuration, code and/or system that produces this error, so without more information on the set-up there is nothing more I/we can help with right now.

Good luck.

0

Additionally, did you install the MySQL connector/NET?

http://www.mono-project.com/docs/database-access/providers/mysql/

Download link: http://dev.mysql.com/downloads/connector/net/

Good luck!

  • thanks it's running in Console mode. but in GTK it dosen't , help me please . – samsoumtn Apr 1 '16 at 16:53
  • Sounds a bit strange and a different problem. But try to run when targeting x86 (32-bit). – E.F. Nijboer Apr 1 '16 at 17:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.