Free tutorials for Java, Eclipse and Web programming



Follow me on twitter

2. Installation

2.1. Windows

Under Windows download the community edition from http://dev.mysql.com/downloads/ . For windows you have installer program available which guides you through the installation process.

Tip

If you had MySQL previously installed the installation may fail with the following error message:

"Access denied for user 'root'@'localhost'".

In this case de-install MySQL and remove any MySQL data directory from your computer and try again.

To de-install MySQL use "Add/Remove Programs" in the "Control Panel". That will also remove the windows services.

The data directory is located in the folder "C:\Documents and Settings\All Users\Application Data\MySQL".

2.2. Linux (Ubuntu)

Under Linux (Ubuntu) you can use the following command:

				
sudo apt-get install mysql-server

			

The installation will asked you questions regarding your desired installation, e.g. the password to use, etc.