|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
||||
|
||||
|
MySQL access denied
Quote:
Suggestions as to why I can't seem to get around this? I use the same username and password in a PHP file to access a MySQL db and it works fine. Why would a request from a jsp file be denied? Let me know what other information I need to provide to help on this... Thanks for the newbie help in advance...
__________________
Yawmark class Sig{public static void main(String...args){\u0066or(int \u0020$:"vÌÈÊ\"¤¾Àʲ¬Æ\"v¤Î¤\"²¤¨¸¬Æ".to\u0043h\u0061rArray() )System./*goto/*$/%\u0126//^\u002A\u002Fout.print((char)(($>> +(~'"'&'#'))+('<'>>('\\'/'.')/\u002Array.const(~1)\*\u002F)));}} |
|
#2
|
||||
|
||||
|
I stumbled on the answer. I was specifying a password and didn't need to be...
Thanks! |
|
#3
|
|||
|
|||
|
Id like to see the code you are using for getting the driver & connecting. Id be willing to bet the url of the db is incorrect for your connection string. Ive seen this same error WAY too many times & 99% of the time I had used the wrong url...If you could post this code Ill look at it or send it to me ddalton@noln.com. Ill get back to you as soon as I get home from work
|
|
#4
|
||||
|
||||
|
Well, thanks, but like I said in the message above, I got it to work. The url was apparently correct, as it works now with the password not set.
Here's the code: Code:
conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user + "$password="; Connection Conn = DriverManager.getConnection(conn); |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > MySQL access denied |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|