[play-framework][1.2.5] DB configuration URL when user and password is empty

115 views
Skip to first unread message

gokool

unread,
Nov 14, 2012, 8:22:27 PM11/14/12
to play-fr...@googlegroups.com
This might be a trivial question. I have a local MySQL database which has no password has been set.
So basically my application.conf file has this entry:
db=mysql:root:@emp

However, when play starts up and tries to process a request, it complains displaying this in the  stacktrace.
play.exceptions.DatabaseException: Cannot connected to the database, " Access denied for user ''@'localhost' to database 'name:@emp''

Is there a way to specify the URL explicitly telling the framework that it should not expect a password?

Thanks
Message has been deleted

notalifeform

unread,
Nov 15, 2012, 4:47:54 PM11/15/12
to play-fr...@googlegroups.com
Hi,

It looks like the documentation describes your exact use case:


regards,

Robert
db.url=jdbc:mysql://localhost/test
db.driver=com.mysql.jdbc.Driver
db.user=root
db.pass=
Reply all
Reply to author
Forward
0 new messages