★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum4/HTML/000314.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  MySQL
  mysql - jdbc connection problem

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   mysql - jdbc connection problem
bmx2hell
Junior Member
posted March 15, 2000 04:15 AM     Click Here to See the Profile for bmx2hell   Click Here to Email bmx2hell     Edit/Delete Message Reply w/Quote
I'm trying to connect to a mysql database using an applikation written in java on a apache server. I'm using the org.gjt.mm.mysql driver and I'm compiling under 1.1.4 but executing under 1.2.2
I constantly get this error message when running the app:
java.sql.SQLException: Server configuration denies access to data source

the code looks like:
try
{
Connection con = DriverManager.getConnection ("jdbc:mysql://localhost/db2?user=USERNAME?password=PASS");
//sql querys
catch(SQLException slut)

But I can connect to the database db2 using
mysql -u USERNAME -pPASS db2

So why do mysql denies access to the aplikation but not when I'm connecting from the prompt?

//Fred

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.