Rails and MySQL

I decided to use MySQL with Rails on my Ubuntu and Windows machines. On Windows I use RailsInstaller, and I was able to install the gem with

It even seemed to compile stuff, or it got a precompiled gem. I saw this in the console:

For Ubuntu, there were a few more issues. First I has to install some packages:

Then I could run the gem install command:

Then in the development section of config/database.yml I had to comment out the following line:

I added mysql2 to the Gemfile

Then I could generate scaffolds:

Here are the create statements and some helpful commands: