How do I create a new Ruby on Rails application using MySQL instead of SQLite?
Translations
Englishالعربية
български
català
中文
čeština
dansk
Nederlands
eesti
suomi
français
Deutsch
Ελληνικά
עברית
हिंदी
magyar
Bahasa Indonesia
italiano
日本語
한국어
latviešu
lietuvių
norsk
polski
Português
română
русский
slovenčina
slovenski
español
svenska
ไทย
Türkçe
українська
Tiếng Việt
I want to create my Rails application with MySQL, because I like it so much. How can I do that in the latest version of Rails?
This question and answers originated from www.stackoverflow.com
Question by Daniel Broekman (8/6/2008 3:50:49 PM)
Answer |
If you already have a rails project, change the adapter in the config/database.yml file to mysql and make sure you specify a valid username and password, and optionally, a socket:
development:
adapter: mysql
database: db_name_dev
username: koploper
password:
host: localhost
socket: /tmp/mysql.sock
Answer by Michiel de Mare
Find More Answers
Related Topics mysql ruby-on-rails ruby