I wrote a method to connect to my MySQL database, and tested it remotely and for a local database. The code looks like this:
Thus far, it has worked fine for me on every machine. Because of this, I copied this over to group project I'm currently working on. Still works fine - but only for me. Two other members of the group get the following exception:
If they add
above the conn = ... statement, it works fine for them, but stops working for me. I get the following exception:
We use the latest version of Connector/J, and it is in our libraries directory.
Does anyone have an idea what the problem might be, or, better yet, how to fix it?
Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
But I tested both versions of the code about 20 seconds apart - the first one connects, the second doesn't. So the database is running.
The other guys can connect just fine to their local databases (and my remote one), with their altered code, while I just can't.