Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
[1.2.5] DB configuration URL when user and password is empty
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gokool  
View profile  
 More options Nov 14 2012, 8:22 pm
From: gokool <gokoolt...@gmail.com>
Date: Wed, 14 Nov 2012 17:22:27 -0800 (PST)
Local: Wed, Nov 14 2012 8:22 pm
Subject: [play-framework][1.2.5] DB configuration URL when user and password is empty

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
notalifeform  
View profile  
 More options Nov 15 2012, 4:47 pm
From: notalifeform <notalifef...@gmail.com>
Date: Thu, 15 Nov 2012 13:47:54 -0800 (PST)
Local: Thurs, Nov 15 2012 4:47 pm
Subject: Re: [play-framework][1.2.5] DB configuration URL when user and password is empty

Hi,

It looks like the documentation describes your exact use case:

*http://www.playframework.org/documentation/1.2.5/model#database*
*
*
regards,

Robert

db.url=jdbc:mysql://localhost/test
db.driver=com.mysql.jdbc.Driver
db.user=root
db.pass=


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »