Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

play framework - Driver not found: [com.mysql.jdbc.Driver] - intelli J [duplicate]

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.

like image 598
dotnetrocks Avatar asked Dec 12 '22 21:12

dotnetrocks


2 Answers

Here you have full recipe for configuring MySQL DB:

  • Steps needed to use MySQL database with Play framework 2.0
like image 99
biesior Avatar answered Apr 06 '23 18:04

biesior


Just I got the answer !!

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

like image 34
dotnetrocks Avatar answered Apr 06 '23 19:04

dotnetrocks