Name: crugler 2010-10-31 18:04
Hi guys.
I've got mysql server on my computer and I'm connecting to it from my program written in c#. Everything's working till I use localhost. My connection-string looks like this :
string MyConString = "SERVER=localhost;" + "DATABASE=nero_db;" + "UID=root;" + "PASSWORD=asdasd;";
I would like to make it work with my external IP adress, so I tried to make it this way:
string MyConString = "SERVER=xxx.xxx.xx.xx:3306;" + "DATABASE=nero_db;" + "UID=root;" + "PASSWORD=asdasd;";
I forwarded port 3306 to my mashine in router.
SERVER="localhost:3306" is not even working...
Any ideas/experiece?
Thanks in advice.
I'm using VS STUDIO 2008 , connector, and mysql 5.1.48
I've got mysql server on my computer and I'm connecting to it from my program written in c#. Everything's working till I use localhost. My connection-string looks like this :
string MyConString = "SERVER=localhost;" + "DATABASE=nero_db;" + "UID=root;" + "PASSWORD=asdasd;";
I would like to make it work with my external IP adress, so I tried to make it this way:
string MyConString = "SERVER=xxx.xxx.xx.xx:3306;" + "DATABASE=nero_db;" + "UID=root;" + "PASSWORD=asdasd;";
I forwarded port 3306 to my mashine in router.
SERVER="localhost:3306" is not even working...
Any ideas/experiece?
Thanks in advice.
I'm using VS STUDIO 2008 , connector, and mysql 5.1.48