diff options
author | Arun Agrawal <arun@fromjaipur.com> | 2011-06-15 07:36:52 +0530 |
---|---|---|
committer | Arun Agrawal <arun@fromjaipur.com> | 2011-06-15 07:36:52 +0530 |
commit | aed85375caad9bbbb3a97aa49cec22c5771d5f8b (patch) | |
tree | 529e8aa932d977597fcfd3712e2ed62e5efb5672 /railties/guides | |
parent | d5b1cf592b5e9e4363ff6ee87e33850ae7e9c929 (diff) | |
download | rails-aed85375caad9bbbb3a97aa49cec22c5771d5f8b.tar.gz rails-aed85375caad9bbbb3a97aa49cec22c5771d5f8b.tar.bz2 rails-aed85375caad9bbbb3a97aa49cec22c5771d5f8b.zip |
Added doc for Mysql database with Jruby platform #jruby
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/getting_started.textile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index a3d8178eac..3549dd89ab 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -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 |