[C#] Remote MySQL Connection
#1

Hello, I am writing a database control program, and was wondering how to setup the remote mysql connection.

Well, I am using simple structure as that:

 

"Data Source=" + this.Host.Text + ";Database=" + this.database.Text + ";User ID=" + this.user.Text + ";Password=" + this.password.Text + ";

 

It works only with 127.0.0.1. Any idea how to make remote?

 

Thanks in advance!

#2

Its the same, normally it should work for any host.

 

What does the MySqlException say?

#3

Fixed! Problem was with priveleges :-|

Thank you Wiza Smile



Forum Jump:


Users browsing this thread: 1 Guest(s)