LED 光センサ サーボモータ rails new app_nameだと、databese.ymlの中身はsqlite3仕様になってる。 引数にオプションdとデータベース名を渡すと、そのデータベースのdatabase.ymlが出来上がる。 $rails new -d mysql config/database.yml # MySQL. Versions 4.1 and 5.0 are recommended. # # Install the MYSQL driver # gem install mysql2 # # Ensure the MySQL gem is defined in your Gemfile # gem 'mysql2' # # And be sure to use new-style password hashing: # http://dev.mysql.com/do
![2012-12-09](https://cdn-ak-scissors.b.st-hatena.com/image/square/06a15c64ba0ceec233d86d71001ebb29a9dcbf5d/height=288;version=1;width=512/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Ftheme%2Fog-image-1500.png)