MistahMilla
asked on
Connecting to a MYSql Database
This is my code:
Connection conn = DriverManager.getConnectio n("jdbc:my sql://loca lhost/coin zilla?user =administr ator&passw ord=passwo rd");
This is the error i get:
Access denied for user ''@'miller.virtual.vps-hos t.net' to database 'coinzilla' 42000 1044
I have doubled checked the username and password multiple times. Is there anything else that could be causing the error?
Connection conn = DriverManager.getConnectio
This is the error i get:
Access denied for user ''@'miller.virtual.vps-hos
I have doubled checked the username and password multiple times. Is there anything else that could be causing the error?
ASKER
Tried that just now... almost the same error.
Access denied for user 'administrator'@'miller.vi rtual.vps- host.net' (using password: YES) 28000 1045
Just the numbers at the end are different.
Access denied for user 'administrator'@'miller.vi
Just the numbers at the end are different.
> Just the numbers at the end are different.
No the user is also different, and also the password is now being used.
Check that that user has access to the database.
No the user is also different, and also the password is now being used.
Check that that user has access to the database.
ASKER
I'm pretty sure that it does have access to the database.
http://miller.virtual.vps-host.net/priv.jpg
http://miller.virtual.vps-host.net/priv.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks... i'm a moron
don't be so hard on yourself :)
Connection conn = DriverManager.getConnectio