how to use mysql in ruby on rails code example Example: create rails app with mysql database rails new app_name -d mysql