Issue
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?
Solution
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
Answered By - Michal_Szulc