Home Connect MySQL with Grails project in Netbeans
Reply: 1

Connect MySQL with Grails project in Netbeans

Tahmid Saim
1#
Tahmid Saim Published in 2018-01-06 13:38:07Z

I want to connect MySQL with Grails in Netbeans. I am using,

  • Grails version:3.2
  • Netbeans: 8.2
  • JDK: 1.8
  • OS: Windows 10

How to connect my grails project with MySQL Database in NetBeans? I have search through the internet, But could not find any way to add mysql-connector.jar or any other process.

How can I solve this problem?

Michal_Szulc
2#
Michal_Szulc Reply to 2018-01-06 18:17:03Z

you shouldn't add it manually. it is usually resolved (by convention) by adding proper dependency:

dependencies {
    runtime 'mysql:mysql-connector-java:5.1.29'
}

The configuration can be maintained in either grails-app/conf/application.groovy or grails-app/conf/application.yml

More info: https://docs.grails.org/latest/guide/conf.html#dataSource

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.313787 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO