1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Added doc for Mysql database with Jruby platform #jruby

This commit is contained in:
Arun Agrawal 2011-06-15 07:36:52 +05:30
parent d5b1cf592b
commit aed85375ca

View file

@ -268,6 +268,18 @@ development:
database: db/development.sqlite3
</yaml>
h5. Configuring an Mysql Database for Jruby Platform
If you choose to use Mysql and using Jruby, your +config/database.yml+ will look a little different. Here's the development section:
<yaml>
development:
adapter: jdbcmysql
database: blog_development
username: root
password:
</yaml>
TIP: You don't have to update the database configurations manually. If you had a look at the options of application generator, you have seen that one of them is named <tt>--database</tt>. It lets you choose an adapter for couple of most used relational databases. You can even run the generator repeatedly: <tt>cd .. && rails new blog --database=mysql</tt>. When you confirm the overwriting of the +config/database.yml+ file, your application will be configured for MySQL instead of SQLite.
h4. Creating the Database