Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Server configuration denies: Jsp, MySql

  Asked By: Cesar    Date: Oct 22    Category: Java    Views: 822
  

While hosting a web application ( Java and MySql ), I
faced below exception:

java.sql.SQLException: Server configuration denies
access to data source


This is my connection instruction:

con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/dbname?user=xxxx&passwo\
rd=yyyy"
);

I guess there is problem in MySQl privileges but I
don’t know what is it?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Cleopatra Massri     Answered On: Oct 22

I think you do not have access right to your
MySql instance .
for example if you login to your os as login=foo
and pass=par and then start mysql  Server , then
your connection  String must be :
jdbc:mysql://localhost:3306/dbname?user=foo&password=bar"

 
Didn't find what you were looking for? Find more on Server configuration denies: Jsp, MySql Or get search suggestion and latest updates.




Tagged: