Re: Help for a newbee please!
From: Chris Hatton (chrishatton_at_blueyonder.co.uk)
Date: 12/15/04
- Next message: hilz: "Re: indexes in MsAccess"
- Previous message: kaeli: "Re: Help for a newbee please!"
- In reply to: kaeli: "Re: Help for a newbee please!"
- Next in thread: klynn47_at_comcast.net: "Re: Help for a newbee please!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 15 Dec 2004 16:46:40 +0000
kaeli wrote:
> In article <41c045e2$1@nntphost.cis.strath.ac.uk>,
> chrishatton@blueyonder.co.uk enlightened us with...
>
>>I'm having problems trying to connect to a remote mySQL db. I have have
>>got this working on localhost but can get it to work for my website db.
>>
>>Can anyone point out problems with the code or general problems I shoudl
>>be looking out for?
>
>
> What's the error you're getting?
>
> To see better, more detailed error messages, print out e.getMessage() and do
> a e.printStackTrace() here, instead of just rethrowing the error.
> For a website, you may need to grab the output stream instead of using
> System.out. How to do that depends a bit on whether you're using JSP/beans
> (you'd need to pass JSPWriter response in or set a property in the bean or
> throw it to a custom error page) or a servlet (you can just write to
> response).
>
>
>
>> } catch ( java.sql.SQLException e ) {
>> System.out.println("Connection couldn't be established to " + url);
>> throw ( e );
>> }
>> }
>
>
This is the error I am getting but it doesn't mean much to me:
MySQL Driver Found
Connection couldn't be established to
jdbc:mysql://www.tattooplace.co.uk/tattoop
_chatusers
Invalid authorization specification message from server: "Access denied
for user
: 'tattoop_chris@82-40-66-187.cable.ubr09.uddi.**ueyonder.co.uk' (Using
password
: YES)"
java.sql.SQLException: Invalid authorization specification message from
server:
"Access denied for user:
'tattoop_chris@82-40-66-187.cable.ubr09.uddi.**ueyonder
.co.uk' (Using password: YES)"
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1997)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1906)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:954)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1786)
at com.mysql.jdbc.Connection.<init>(Connection.java:450)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:411)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at TestMySQL.getConnection(TestMySQL.java:71)
at TestMySQL.test(TestMySQL.java:20)
at Driver.main(Driver.java:7)
Press any key to continue...
- Next message: hilz: "Re: indexes in MsAccess"
- Previous message: kaeli: "Re: Help for a newbee please!"
- In reply to: kaeli: "Re: Help for a newbee please!"
- Next in thread: klynn47_at_comcast.net: "Re: Help for a newbee please!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|