xin,
i'm having a successfull connection to mysql db using JSP... this is the code i'm
using :
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost/mydb?user=mydbuser&password=mydbpwd");
No problem with this. If there's nothing wrong with your code, your error is telling
something about the configurations on your system. What system and platform are you
using for your JSP?
SupremeBeing
>when i connect mysql use jdbc use code
> String conurl = "jdbc:mysql://"+ host + ":" + port + "/" + dbname;
> try{
> con = DriverManager.getConnection(conurl, dbuser, dbpass);
>
>i got:
>SQLException: java.sql.SQLException: Server configuration denies access to data source
>
>Dose there anyone know the problem of the error? Plz give me some detail description.
>thanks alot.
>
> xin_kang
> [EMAIL PROTECTED]
>
>==========================================================================To
>unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
******************
>From my right-eye i create all for myself, from the left-eye i accept all that there
>is otherwise. It is nothing more than what i deserve, for i am the Supreme Being
******************
------------------------------------------------------------
Are you a Hoboe? Hobnob at http://www.hoboe.com
Click here -> http://www.hoboe.com Global Mail Access
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets