Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

c# and mysql

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

Name: Anonymous 2010-10-31 18:05

You're an idiot.

Name: Anonymous 2010-10-31 18:15

>>2
You can't just go you're an idioting him without telling him to use the [code] tags!

Name: Anonymous 2010-10-31 18:19

So is MySQL running on port 3306?

Name: crugler 2010-10-31 18:21

yes it is

Name: Anonymous 2010-10-31 18:22

fuckyou

Name: crugler 2010-10-31 18:23

SERVER=127.0.0.1  works
SERVER=192.168.0.100 - my local ip - dowsnt work ;/  ...

Name: crugler 2010-10-31 18:23

SERVER=127.0.0.1  works
SERVER=192.168.0.100 - my local ip - dowsnt work ;/  ...

Name: Darkkal !CTaNqTxDio 2010-10-31 18:30

isn't that a whole ordeal you have to deal with in MySQL that allows remote access from outside the localhost connection.

Name: Anonymous 2010-10-31 18:31

Why don't you keep the program on the same machine as the database and run it from elsewhere? It'd trust you more then.

Name: Anonymous 2010-10-31 18:34

VS STUDIO 2008 , connector, and mysql 5.1.48

Running a server on a Windows box.
Now you have two many, many problems.

Name: Crugler 2010-10-31 18:57

10 ~ It is on the same machine , I just wanted to make it connectable from other computers.

Thanks Darkkal, I set access in my db and it works now.
:)

Name: Anonymous 2011-02-04 14:05


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List