mengu on web programming.

Using MySQL with Grails on Ubuntu

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

No comments made for this post.

Leave a Response

No HTML allowed. You can use markdown.
Name*:
E-Mail* (not published):
Web site:
Response: