10
readers helped!

This helped me

How to Install the MySQL Database Server on Your Windows PC

This How.com.vn teaches you how to install the MySQL Server program on a Windows 10 computer. In order to install MySQL on a Windows computer, you must first have Python 2.7 (not Python 3+) installed.

Part 1
Part 1 of 3:

Installing Python

  1. How.com.vn English: Step 1 Open the Python download page.
    Go to https://www.python.org/downloads in your computer's web browser.
  2. How.com.vn English: Step 2 Click Download Python 2.7.14.
    It's a yellow button at the top of the page. Python version 2.7.14 is the version that you'll need to use for MySQL.
    • You cannot run MySQL using Python 3.
  3. How.com.vn English: Step 3 Double-click the Python setup file.
    You'll find it in your browser's default downloads location. Doing so opens the Python setup window.
  4. How.com.vn English: Step 4 Navigate through the Python installation.
    The Python setup process is fairly straightforward:
    • Click Next on the first page.
    • Click Next on the "Select Destination Directory" page.
    • Click Next on the "Customize" page.
  5. How.com.vn English: Step 5 Click Yes when prompted.
    Doing so will cause Python to begin installing.
    • The Python installation should only take a few seconds.
  6. How.com.vn English: Step 6 Click Finish.
    This option appears when Python has been installed successfully. Now that Python 2.7 is installed, you can proceed with installing MySQL.
    Advertisement
Part 2
Part 2 of 3:

Installing MySQL

  1. How.com.vn English: Step 1 Open the MySQL Server download page.
    Go to https://dev.mysql.com/downloads/windows/installer/8.0.html in your computer's web browser. This will take you to the download site for the community version of MySQL Server.
  2. How.com.vn English: Step 2 Click the bottom Download option.
    This blue button is at the bottom of the page.
    • Make sure to click the bottom Download button and not the top one here.
  3. How.com.vn English: Step 3 Scroll down and click No thanks, just start my download.
    It's a link near the bottom of the page. The MySQL setup file will download onto your computer.
  4. How.com.vn English: Step 4 Double-click the setup file.
    Doing so prompts the MySQL setup window to open.
  5. How.com.vn English: Step 5 Click Yes when prompted.
    This will confirm that you want to proceed with installing MySQL, which will open the MySQL launcher window.
    • You may have to do this twice before proceeding.
  6. Step 6 Check the "I accept the license terms" box.
    It's in the bottom-left side of the launcher window.
  7. How.com.vn English: Step 7 Click Next.
    This is at the bottom of the window.
  8. Step 8 Check the "Full" box.
    It's in the middle of the page.
  9. How.com.vn English: Step 9 Click Next.
    This option is at the bottom of the page. Doing so will save your installation preferences.
  10. Step 10 Click Next on the "Requirements" page.
    It's at the bottom of the page.
  11. How.com.vn English: Step 11 Click Execute.
    This button is at the bottom of the window. Doing so will prompt MySQL to begin installing onto your computer.
  12. How.com.vn English: Step 12 Wait for MySQL to finish installing.
    Once each of the options in the "Installation" window have checkmarks next to them, you can proceed with setting up MySQL.
    Advertisement
Part 3
Part 3 of 3:

Setting up MySQL

  1. How.com.vn English: Step 1 Navigate through the first few pages.
    The first five pages of the MySQL setup are optimized for most Windows computers, so you can just click through them:
    • Click Next when the installation completes.
    • Click Next on the configuration page.
    • Click Next on the "Group Replication" page.
    • Click Next on the "Type and Networking" page.
    • Click Next on the "Authentication Method" page.
  2. How.com.vn English: Step 2 Create a MySQL password.
    Type your preferred password into the "MySQL Root Password" text box, then re-enter the password in the "Repeat Password" text box.
  3. How.com.vn English: Step 3 Add an administrator account.
    This will be the non-root account that you can use to do things like add users, change passwords, and so on:
    • Click Add User in the lower-right side of the page.
    • Type in your preferred username in the "Username" field.
    • Make sure that the "Role" field has DB Admin selected; if it doesn't, click the "Role" drop-down box and then click DB Admin
    • Enter a unique password for the user in the "Password" and "Confirm Password" boxes.
    • Click OK
  4. How.com.vn English: Step 4 Click Next.
    This is at the bottom of the page. Doing so confirms your password and user account.
  5. How.com.vn English: Step 5 Click Next.
    It's at the bottom of the "Windows Service" page.
  6. How.com.vn English: Step 6 Enable MySQL as a document store.
    You can skip this step by clicking Next if you like. Otherwise, do the following:
    • Check the "Enable X Protocol / MySQL as a Document Store" box.
    • Change the port number if necessary.
    • Make sure that the "Open Windows Firewall port for network access" box is checked.
    • Click Next
  7. How.com.vn English: Step 7 Click Execute.
    It's at the bottom of the window. Your MySQL installation will begin configuring itself.
  8. How.com.vn English: Step 8 Click Finish.
    This option will become available when the configuration is complete.
  9. How.com.vn English: Step 9 Configure the next attribute.
    Click Next at the bottom of the window, then click Finish. This will bring you to the final part of MySQL's setup, which is connecting to the server itself.
  10. How.com.vn English: Step 10 Enter your root password.
    In the "Password" box near the bottom of the window, type in the password that you created at the beginning of this part.
  11. How.com.vn English: Step 11 Click Check.
    It's at the bottom of the page. This will check your password and, if the password is correct, allow you to proceed.
  12. How.com.vn English: Step 12 Click Next.
    This option is at the bottom of the page.
  13. How.com.vn English: Step 13 Click Execute.
    Doing so will configure this part of your installation.
  14. How.com.vn English: Step 14 Finish the product configuration.
    Click Finish, click Next at the bottom of the "Product Configuration" page, and click Finish in the bottom-right corner of the window. This will complete your MySQL setup and open the MySQL Shell and dashboard. You're now ready to begin using MySQL.
    Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit

      Advertisement

      Tips

      • If you want to install the Apache/PHP/MySQL combo on Windows, you can use XAMPP in conjunction with your MySQL server.
      Advertisement

      Warnings

      • If you have Python 3 installed, MySQL will not recognize it as a valid source. You need to have Python 2.7 installed in order for MySQL to be properly configured.
      Advertisement

      About this article

      How.com.vn English: Jack Lloyd
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for How.com.vn. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 616,773 times.
      How helpful is this?
      Co-authors: 36
      Updated: November 3, 2022
      Views: 616,773
      Article SummaryX

      1.Install Python.
      2.Download the MySQL Server for your operating system.
      3.Run the setup file.
      4.Accept the terms.
      5.Follow the on-screen instructions to install.
      6.Create a root password and admin account.
      7.Enable MySQL as a document store.
      8.Configure your network settings.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 616,773 times.

      Reader Success Stories

      • How.com.vn English: Yagni Murali

        Yagni Murali

        Sep 18, 2016

        "Link provided for downloading the MySQL Server was a good idea."

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement