yyyyyyyyyyyyyyyyyyyy

博客园 首页 新随笔 联系 订阅 管理

Cannot create PoolableConnectionFactory (Unknown database 'DB_NAME'):
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'DB_NAME'

Because, there was no Database scheme in the mysql database engine. So, to solve this:

  1. In console window type "mysql-u root-p" if your mysql username is root and you have a password.
  2. Create new database using "create database DB_NAME".
  3. Exit the mysql console as you don't need it, using "exit" command.

Now, you can restart your grails application and this exception will not show up again.

Wish you best of luck.

posted on 2015-08-22 16:53  xxxxxxxx1x2xxxxxxx  阅读(533)  评论(0)    收藏  举报