You don't have configured correctly grails data sources in grails-app/conf/application.groovy
.
It should be something like these:
dataSource {
dbCreate = "update"
url = "jdbc:mysql://localhost:3306/my_database"
driverClassName = "com.mysql.jdbc.Driver"
dialect = org.hibernate.dialect.MySQL5InnoDBDialect
username = "username"
password = "password"
}
Keep in mind that if you have a specific configuration for your current execution environment (e.g. production), you must edit the relative configuration:
environments {
production {
dataSource {
url = "jdbc:mysql://liveip.com/liveDb"
// other environment-specific settings here
}
}
}
For a complete reference see the grails data source documentation.