#### If you want to use SQLite (not recommended)rails new myapp
MySQL
#### If you want to use MySQLrails new myapp -d mysql
PostgreSQL
#### If you want to use Postgres# Note that this will expect a postgres user with the same username# as your app, you may need to edit config/database.yml to match the# user you created earlierrails new myapp -d postgresql
The postgres installation doesn't setup a user for you, so you'll need to follow these steps to create a user with permission to create databases. Feel free to replace joseph with your username.
sudo -u postgres createuser joseph -s# If you would like to set a password for the user, you can do the followingsudo -u postgres psqlpostgres=# \password joseph