Problemas ao conectar banco de dados local mysql ao Grails 3.2.2
09/08/2017 16:56
?dataSource:
pooled: true
jmxExport: true
driverClassName: com.mysql.jdbc.Driver
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
username: root
password: root
environments:
development:
dataSource:
dbCreate: update
url: jdbc:mysql://localhost:3306/meu_banco
test:
dataSource:
dbCreate: update
url: jdbc:mysql://localhost:3306/meu_banco
production:
dataSource:
dbCreate: update
url: jdbc:mysql://localhost:3306/meu_banco
properties:
jmxEnabled: true
initialSize: 5
maxActive: 50
minIdle: 5
maxIdle: 25
maxWait: 10000
maxAge: 600000
timeBetweenEvictionRunsMillis: 5000
minEvictableIdleTimeMillis: 60000
validationQuery: SELECT 1
validationQueryTimeout: 3
validationInterval: 15000
testOnBorrow: true
testWhileIdle: true
testOnReturn: false
jdbcInterceptors: ConnectionState
defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED
#removeAbandonedTimeout: 120
#removeAbandoned: true
Para se registrar, clique aqui.