LCKB
[C#] Remote MySQL Connection - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196)
+---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192)
+---- Thread: [C#] Remote MySQL Connection (/showthread.php?tid=2324)



- Paramount - 08-23-2013


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!




- Wizatek - 08-23-2013


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

 

What does the MySqlException say?




- Paramount - 08-23-2013


Fixed! Problem was with priveleges :-|

Thank you Wiza Smile