|
To download the Windows Essentials version of MySQL, which is really everything you will be needing, go to the official site here.There is a mysql distribution available for Linux as well on the same page, however the installation process will be different.
In the following,I will explain the MySQL install process for Windows with the Windows Essentails 5.0.37 distribution.
Once you've downloaded the installer from the site, open it.It will look like this:
Click "Next" and select "Typical" as type of install.
On the next screen click "Install".After this, the installer will copy files to your system and then a window will pop-up asking for your account username and pass at mysql.com
You can select "Skip Sing-up" if you wish.Make sure "Configure MySQL server now" is selected on the next screen and click "Finish".
The server configuration wizard will start.Click "next", select "Standard Configuration".
On the next screen, select "Install as Windows Service" and "Include Bin Directory in Windows PATH".
Select "Create An Anonymous Account" on the next screen.This setting is ok only for development on your pc and it's not safe at all for a server for example, because this setting actually creates a superuser named "root" with no pass associated which is a serious security risk.If this was a setting applied to a real,live web server, it would probably be "hacked" in a matter of minutes.
After this, click on "Execute".A success message will greet you on the next screen.Click "finish" to exit the wizard.
That's it.You've finished installing MySQL.
Let's configure it to work with Rails now.
First of all, because Rails cannot create a database by itself, you will need an administrative software to take care of this for you.
I suggest installing MySQL Tools, offered by the same site that offers the original MySQL distribution.
Go here and download the corresponding version to the operating system you have installed( in case of this tutorial, a version of Windows)
|