Databases :: MySql :: JAVA , JDBC, MYSQL ERROR...HELP |
|||
| By: lodibabu |
Date: 24/11/2004 00:00:00 |
Points: 80 | Status: Answered Quality : Excellent |
|
Hi, i am new to my sql i created the Database I created a table I populated the table with some values I created a user I attached that user to the database after than i am trying to access information using my JSP page using JDBC i am getting this error java.sql.SQLException: Invalid authorization specification: Access denied for user: 'babu002_dbaccess@localhost' (Using password: YES) I understand we need to do something with the GRANT command , but i am not sure what to do. help me out here. my java code look like this String dbURL = "jdbc:mysql://localhost/babu002_backend"; String dbDriver = "com.mysql.jdbc.Driver"; String dbUser = "username"; String dbPass = "password"; Thanks - BM |
|||
| By: VGR | Date: 24/11/2004 03:32:00 | Type : Answer |
|
| <A HREF="http://www.mysql.com/doc/en/GRANT.html">http://www.mysql.com/doc/en/GRANT.html</A> |
|||
| By: VGR | Date: 24/11/2004 03:34:00 | Type : Comment |
|
| for a start : -have you set a non-empty password for mysql-user "root" ? -have you created the mysql-user 'babu002_dbaccess' ? This is done via GRANT command... -connect as 'root' -show me the result from : SELECT * FROM mysql.user; |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








