users@glassfish.java.net

Re: JPA:- java.sql.SQLException : No database selected Error Code: 1046

From: <glassfish_at_javadesktop.org>
Date: Tue, 29 Jan 2008 05:13:10 PST

i found the problem & fix . i had created a connect pool by sun admin console.
In connection pool Additional Properties.
I had added "URL"="jdbc:mysql://localhost:3306/"
instead of "URL"="jdbc:mysql://localhost:3306/databasename"

so each time show me error database not selected

now it working fine thanks
[Message sent by forum member 'shyamss_java' (shyamss_java)]

http://forums.java.net/jive/thread.jspa?messageID=256313