Objectives

In this lab, you will install MySQL and log in to MySQL Workbench.

MySQL and MySQL Workbench

MySQL is an open-source relational database management system (RDBMS). The acronym "SQL" (sometimes pronounced "sequel") stands for Structured Query Language. SQL is a standard computer language for relational database management and data manipulation. SQL is used to query, insert, update and modify data in a database.

MySQL Workbench is a visual database design tool that integrates SQL development, administration, database design, creation and maintenance into a single integrated development environment for the MySQL database system.

In this lab, you will install the various components that make up a MySQL database, including the MySQL server and the MySQL Workbench application.

Download the installer

You can download the MySQL installer here: https://dev.mysql.com/downloads/installer/

Select the second of the two options shown in the image below:

Note that you do not need to sign up for an Oracle Web account - just select "No thanks, just start my download" which can be found under the grey box with the Login and Sign up buttons.

Run the installation

Once you have downloaded the MySQL installer, carry out the following steps to install MySQL:

  • Double click the installer and click "Run".
  • Accept the license terms and select "Next".
  • Leave the Setup type as the Developer Default and click "Next".
  • The Check Requirements step will install any additional software that you need to run MySQL. Click "Execute" on this step, and then "Next".
  • Now, click on "Execute" to run the MySQL installation; then click "Next" to continue.
  • Click "Next" on the Product Configuration and Type and Networking steps.

  • Important: Accounts and Roles:

    • In this step, you need to set a password to use when logging into MySQL Workbench. It is crucial that you note and remember this password.
    • Often, we use the password "root" as a default password for the root user account. If you want to keep it simple and easy to remember, use "root" as your password here.

  • Click "Next" on the Windows Service step, and "Execute" on the Server Configuration step; then click "Finish".
  • The next step installs Samples and Examples. Click "Next" again.
  • Then you will be prompted for your password, as shown below. Enter the password you set and click "Check".

  • Once it is confirmed that the password is correct, click "Next".
  • Continue through the next few steps clicking either "Execute" or "Next", and lastly, click "Finish" once the installation is complete.
  • MySQL Workbench should launch automatically. In step 4, we will log in to MySQL Workbench.

Log in to MySQL Workbench

Once the MySQL installation is complete, MySQL Workbench should launch automatically.

Under "MySQL Connections" you should see one connection: Local instance MySQL56. This is the default connection; you can see it uses the default "root" user, the localhost server and port 3306.

Click on the Local instance MySQL56 connection. You will be asked for a password; this is the password that you set during the installation process.

After entering the correct password, you should see the following view:

You are now logged in to the MySQL Workbench application. In our next lab (the onsite workshop on Friday 15th June) we will create a database and perform some simple queries on the data.