Try this.

Change this:
    static final String dbURL =
"jdbc:mysql://localhost:3306/koordinat_bts?"+"user=user&password=pasword";

To this:
    static final String dbURL = "jdbc:mysql://localhost:3306/koordinat_bts";
    static final String dbUser = "user";
    static final String dbPass = "password";

And this:

            conn = DriverManager.getConnection(dbURL);

To this:

            conn = DriverManager.getConnection(dbURL, dbUser, dbPass);

And give it another try.

Put some checks in your code for the return of a null connection.


Doug
www.parsonstechnical.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to