[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-java
Subject:    Re: Having problems gaining connection to database with mm driver.
From:       brasseur johnny <j.brasseur () infonie ! fr>
Date:       2000-07-19 20:50:21
[Download RAW message or body]

Hi, try this:
in your /etc/hosts , try replacing
127.0.0.1    localhost.localdomain   localhost
by
127.0.0.1    localhost
it should work
see u

Le mer, 19 jui 2000, Eric Burns a écrit :
> 
> I am trying to access my database from a servlet I have created.  I
> am using the mm JDBC driver.
> 
> I'm using version 3.22.32 of MySQL.
> I'm using version 2.0.1 of the mm driver.
> 
> I changed the connection statement as one of you suggested so it reads:
> 
> conn = DriverManager.getConnection
> ("jdbc:mysql://localhost/test");
> 
> That works.  I can get into the test database.  But when I change the database name \
> to a database I created (Joan_DB): 
> conn = DriverManager.getConnection
> ("jdbc:mysql://localhost/Joan_DB");
> 
> The connection is not made.  I tried playing around with the permissions, but \
> nothing seems to work.  Has anybody else run into this problem?  Have you found a \
> way around it?  Does anybody know whether this is a bug in MySQL or in the driver?  \
> Or am I just doing something wrong?  Is the test database hard coded somewhere?  I \
> would appreciate anybody's thoughts on this topic.  Really . . . any thoughts at \
> all would be a help.  Please e-mail me at eric.m.burns@lmco.com because I'm not \
> sure if this e-mail list is being forwarded to me. 
> -Eric
> 

-- 
-----------------
  .~.
  /V\
 // \\
/(   )\  Linux The OS to beat !!!
 ^^-^^
http://www.multimania.com/jbrasseur/jbcv.html




---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail java-thread1461@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail java-unsubscribe@lists.mysql.com instead.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic