Using MySQL with Grails on Ubuntu
2009-11-23 07:58:40 | 0 Comment
As you see I did dive into Grails and trying to have more and more knowledge about it since I am really interested in using it along with or instead of Ruby on Rails for my next two start-ups. Grails needs no configuration, it is just a full stack web framework which you can install and start creating projects. However if you are willing to use MySQL with your Grails project then you need to make some configurations that will not take even two minutes.
- Go ahead and do what it says in here.
- Download MySQL JDBC Connector.
- Extract the archive.
- Move the mysql-connector-java-5.1.10-bin.jar file to your lib folder.
After these steps there is only one configuration left for you to work with MySQL on Grails. Open your config/DataSource.groovy file.
- Change driverClassName to com.mysql.jdbc.Driver.
- Change the url to jdbc:mysql://localhost:3306/databaseName
That's all. You are all set. Enjoy Grails! :)

Comments
Leave a Response