4

Possible Duplicate:
Steps needed to use MySQL database with Play framework 2.0

I am trying to run the Play 2.0 framework application in IntelliJ but it is giving an error : Driver not found: [com.mysql.jdbc.Driver]. But it was running good in Eclipse.

I looked in conf file many times but couldn't get any find error on that.

      db.default.driver=com.mysql.jdbc.Driver
      db.default.url="jdbc:mysql://localhost/resource_planning"
      db.default.user=root
      db.default.pass=password

Any help is appreciated.

Community
  • 1
  • 1
dotnetrocks
  • 2,589
  • 12
  • 36
  • 55
  • Voting to reopen, this is a specific case. In particular, I ran into it after following the steps in the "duplicate" question. My particular problem was failing to restart Play after adding the jdbc config. – ripper234 Apr 23 '13 at 16:02

2 Answers2

7

Here you have full recipe for configuring MySQL DB:

Community
  • 1
  • 1
biesior
  • 55,576
  • 10
  • 125
  • 182
6

Just I got the answer !!

forgot to include dependency - "mysql" % "mysql-connector-java" % "5.1.18" in Build.scala file

prayagupa
  • 30,204
  • 14
  • 155
  • 192
dotnetrocks
  • 2,589
  • 12
  • 36
  • 55