How to Install MySQL Server on a Windows PC

Table of contents:

How to Install MySQL Server on a Windows PC
How to Install MySQL Server on a Windows PC
Anonim

This article shows how to install MySQL Server on a computer with the Windows 10 operating system. In order to install and use MySQL on a Windows platform, the Python programming language version 2.7 must be present (do not install Python 3 or a later version because it does not supports MySQL).

Steps

Part 1 of 3: Install Python

Install the MySQL Database Server on Your Windows PC Step 1
Install the MySQL Database Server on Your Windows PC Step 1

Step 1. Go to the Python website and downloads page

Use the internet browser of your choice and the following URL:

Install the MySQL Database Server on Your Windows PC Step 2
Install the MySQL Database Server on Your Windows PC Step 2

Step 2. Select the Download link for Python version 2.7.14

Do not use the yellow download button at the top of the page as it is reserved for downloading the latest version of Python available. Remember that Python version 2.7.14 is the one that will allow you to use MySQL without problems.

Unfortunately it is not possible to use MySQL using Python 3

Install the MySQL Database Server on Your Windows PC Step 3
Install the MySQL Database Server on Your Windows PC Step 3

Step 3. Double click on the Python installation file

Normally, by default, it is automatically saved in the folder reserved for downloads of the internet browser in use. This will start the installation of the program.

Install the MySQL Database Server on Your Windows PC Step 4
Install the MySQL Database Server on Your Windows PC Step 4

Step 4. Follow the instructions given to you by the installation wizard

In the case of Python, the installation procedure is very simple and intuitive:

  • Push the button Next located in the first screen of the procedure;
  • Push the button Next relative to the "Select Destination Directory" screen;
  • Push the button Next for the "Customize" screen.
Install the MySQL Database Server on Your Windows PC Step 5
Install the MySQL Database Server on Your Windows PC Step 5

Step 5. Press the Yes button when prompted

This will begin installing Python on your computer.

This step should only take a few seconds to complete

Install the MySQL Database Server on Your Windows PC Step 6
Install the MySQL Database Server on Your Windows PC Step 6

Step 6. At the end of the installation press the Finish button

It will be displayed upon completion of the process within the last screen of the installation wizard. Now that Python version 2.7 is installed on your system you can proceed to install the MySQL server.

Part 2 of 3: Install MySQL

Install the MySQL Database Server on Your Windows PC Step 7
Install the MySQL Database Server on Your Windows PC Step 7

Step 1. Log in to the MySQL Server website

Use the browser of your choice and the following URL: https://dev.mysql.com/downloads/windows/installer/8.0.html. You will be automatically redirected to the download page for the installation file of the latest available version of MySQL.

Install the MySQL Database Server on Your Windows PC Step 8
Install the MySQL Database Server on Your Windows PC Step 8

Step 2. Press the Download button

It is blue in color and is positioned at the bottom of the web page that appears.

There should be two installation files related to the Windows operating system, so be sure to select the button Download located lower and not the upper one (to avoid mistakes, download the installation file with the largest size).

Install the MySQL Database Server on Your Windows PC Step 9
Install the MySQL Database Server on Your Windows PC Step 9

Step 3. Scroll down the new page to locate and select the No thanks, just start my download link

It is placed at the end of the page. The MySQL installation file will be downloaded to your computer.

Install the MySQL Database Server on Your Windows PC Step 10
Install the MySQL Database Server on Your Windows PC Step 10

Step 4. Double-click the file you just downloaded

This will start the MySQL installation wizard.

Install the MySQL Database Server on Your Windows PC Step 11
Install the MySQL Database Server on Your Windows PC Step 11

Step 5. Press the Yes button when prompted to confirm your willingness to proceed with the MySQL installation

The relevant installation window will appear.

You may need to perform this step twice before you can continue

Install the MySQL Database Server on Your Windows PC Step 12
Install the MySQL Database Server on Your Windows PC Step 12

Step 6. Select the "I accept the license terms" check button

It is located in the lower left part of the installation window.

Install the MySQL Database Server on Your Windows PC Step 13
Install the MySQL Database Server on Your Windows PC Step 13

Step 7. Press the Next button

It is located in the lower right part of the installation wizard window.

Install the MySQL Database Server on Your Windows PC Step 14
Install the MySQL Database Server on Your Windows PC Step 14

Step 8. Select the "Full" installation option

It is positioned in the center of the page.

Install the MySQL Database Server on Your Windows PC Step 15
Install the MySQL Database Server on Your Windows PC Step 15

Step 9. Press the Next button

It is located at the bottom right of the screen. This will save the installation settings.

Install the MySQL Database Server on Your Windows PC Step 16
Install the MySQL Database Server on Your Windows PC Step 16

Step 10. Press the Next button located inside the "Requirements" screen

It is located at the bottom of the window.

Install the MySQL Database Server on Your Windows PC Step 17
Install the MySQL Database Server on Your Windows PC Step 17

Step 11. Now press the Execute button

The latter is also located in the lower right part of the window. The installation of MySQL Server on your computer will begin.

Install the MySQL Database Server on Your Windows PC Step 18
Install the MySQL Database Server on Your Windows PC Step 18

Step 12. Wait for the MySQL installation to complete

When all the items listed in the "Installation" screen have been marked with a check mark, you can proceed with the MySQL configuration.

Part 3 of 3: Setting up MySQL

Install the MySQL Database Server on Your Windows PC Step 19
Install the MySQL Database Server on Your Windows PC Step 19

Step 1. Follow the instructions for the program setup wizard

The first five screens of the MySQL setup procedure contain default configuration settings that are optimized for most Windows systems, so you can quickly scroll through them simply by following these instructions:

  • At the end of the installation press the button Next;
  • When you get to the MySQL configuration screen, press the button Next;
  • Push the button Next relative to the "Group Replication" page;
  • Now press the button Next located within the "Type and Networking" screen;
  • At this point, press the button Next placed in the "Authentication Method" page.
Install the MySQL Database Server on Your Windows PC Step 20
Install the MySQL Database Server on Your Windows PC Step 20

Step 2. Create the MySQL server login password

Type your preferred password into the "MySQL Root Password" text field, then type a second time using the "Repeat Password" field.

Install the MySQL Database Server on Your Windows PC Step 21
Install the MySQL Database Server on Your Windows PC Step 21

Step 3. Add the server administrator account

This will be the user account that will allow you to manage the MySQL server and perform normal tasks such as adding user profiles, changing login passwords, and so on (this is not the root account):

  • Select the option Add User located in the lower right part of the screen;
  • Type the username you want to assign to the account using the "Username" text field;
  • Make sure that the entry is displayed in the "Role" text field DB Admin. Otherwise go to the "Role" drop-down menu and select the option DB Admin;
  • Enter the access password you prefer using the "Password" and "Confirm Password" text fields;
  • When finished, press the button OK.
Install the MySQL Database Server on Your Windows PC Step 22
Install the MySQL Database Server on Your Windows PC Step 22

Step 4. Press the Next button

It is located at the bottom of the page. This will create the user account with the specified login password.

Install the MySQL Database Server on Your Windows PC Step 23
Install the MySQL Database Server on Your Windows PC Step 23

Step 5. Press the Next button

It is located at the bottom of the "Windows Service" screen.

Install the MySQL Database Server on Your Windows PC Step 24
Install the MySQL Database Server on Your Windows PC Step 24

Step 6. Enable archiving and indexing of documents within MySQL

This step is optional and can be skipped by pressing the button Next. If, on the other hand, it is a feature you want to activate, follow these instructions:

  • Select the check button "Enable X Protocol / MySQL as a Document Store";
  • If necessary, change the number of the communication port;
  • Make sure the "Open Windows Firewall port for network access" checkbox is checked;
  • At this point, press the button Next.
Install the MySQL Database Server on Your Windows PC Step 25
Install the MySQL Database Server on Your Windows PC Step 25

Step 7. Press the Execute button

It is located at the bottom of the window. The MySQL installation wizard will configure the server according to the specified settings.

Install the MySQL Database Server on Your Windows PC Step 26
Install the MySQL Database Server on Your Windows PC Step 26

Step 8. Press the Finish button

The latter will be made available as soon as the MySQL server configuration is complete.

Install the MySQL Database Server on Your Windows PC Step 27
Install the MySQL Database Server on Your Windows PC Step 27

Step 9. Continue configuring the MySQL server

Push the button Next located at the bottom of the window, then press the button Finish. This will give you access to the final part of the MySQL configuration which consists of connecting directly to the server.

Install the MySQL Database Server on Your Windows PC Step 28
Install the MySQL Database Server on Your Windows PC Step 28

Step 10. Enter the root password you set at the beginning of the setup procedure

Use the "Password" text field at the bottom of the window.

Install the MySQL Database Server on Your Windows PC Step 29
Install the MySQL Database Server on Your Windows PC Step 29

Step 11. Press the Check button

It is located at the bottom of the page. In this way, the correctness of the password entered will be verified and, if successful, you can continue.

Install the MySQL Database Server on Your Windows PC Step 30
Install the MySQL Database Server on Your Windows PC Step 30

Step 12. Press the Next button

Again it is positioned at the bottom of the screen.

Install the MySQL Database Server on Your Windows PC Step 31
Install the MySQL Database Server on Your Windows PC Step 31

Step 13. Press the Execute button

At this point the MySQL server will be configured according to the parameters indicated in this last part.

Install the MySQL Database Server on Your Windows PC Step 32
Install the MySQL Database Server on Your Windows PC Step 32

Step 14. Complete the program setup

Press the buttons in succession Finish And Next located at the bottom of the "Product Configuration" page, then press the button Finish which will appear in the lower right corner of the window. This way your MySQL server configuration will be complete and the MySQL command console (Shell) and dashboard will be displayed. At this point you are ready to start using your MySQL server.

Recommended: