Professional Documents
Culture Documents
If you already have MySQL installed you can skip this page. But if you need to install
MySQL, this page will help you.
Download MySQL
First step is to download MySQL from the MySQL website.
This link takes you to the MySQL Community Server. This edition is a freely
downloadable version MySQL. There are also commercial versions available, however,
this tutorial uses the free version.
To check that your platform can run MySQL, see Supported Platforms.
Install MySQL
Once you've downloaded MySQL, the next step is to install it.
The following steps were taken while I installed MySQL 5.6 on my Macbook Pro
(MySQL 5.6.24 to be precise). The exact steps taken may differ slightly — this will
depend on the MySQL version that you're installing and the operating system that
you're installing on to. If you get stuck, see the installation section from the MySQL
reference manual.
Seeing as I'm installing MySQL onto Mac OS X, I could choose between using
the Native Package Installer format or Tar package format, which uses a file
packaged using the Unix tar and gzip commands. I chose the Native Package
Installer format, which uses the native OS X installer (DMG) to guide me through
the installation.
Therefore, the first step is to double click on the .dmg file.
3. Introduction
After double clicking the MySQL installer package, the installer should launch
into the following Introduction screen.
Click Continue.
4. Accept Licence
Click Agree to confirm that you agree to the terms of the software licence
agreement.
6. Installation Type
7. Enter Password
If prompted for a password, go ahead and enter it.
Click Install Software to start the installation process.
8. Installing...
9. Installation Successful
Once MySQL has been installed, you should see a screen like this one.
Click Close to close the installer.
On the Mac, once you've installed MySQL, you should see a MySQL icon like
this inside your System Preferences.
Click on the icon.
3. Start MySQL
Linux/Unix/Mac
Linux/Unix systems can use the mysqld_safe command to start MySQL. You can also
use this method on the Mac, using Terminal.
To do this:
1. Open Terminal, and type cd /usr/local/mysql (or where ever MySQL is installed on the
machine).
2. Then type sudo ./bin/mysqld_safe and enter a password if prompted.
Windows
Windows users can go to the command prompt and type the following: