Sections:
Installing MySQL 8.0 on Windows 10
Databases allow you to store and retrieve information in an organized manner.
Download
- Browse to https://www.mysql.com/downloads/
- Click on the
MySQL Community (GPL) Downloads
link.
- Click on the
MySQL Installer for Windows
link.
- Click on the topmost Download button.
- Click on the
No thanks, just start my download
link.
Install
- Open the downloaded .msi file to begin the installation process.
- Click Yes on the User Access Control (UAC) prompts.
- If a "Mandatory MySQL Installer Upgrade Available" message appears. Click Yes to upgrade it.
- Choose a Setup Type of "Developer Default"
- Click Back.
- Change the Setup Type to "Custom"
- Click Next.
- Remove the following products from installation. Do this by selecting the item in the Products To Be Installed area and clicking on the single left arrow. If the list is blank, please do steps 4 and 5 of the Install section.
- MySQL for Visual Studio
- MySQL Shell
- MySQL Router
- Samples and Examples
- Click Next.
- Click Execute.
- After the products are downloaded, click Next.
- The status of the products will change to "Ready to Install." Click Execute.
- After the products are installed, status will change to "Complete." Click Next.
Configure
- Within the MySQL Install, you will see MySQL Server with a status of Ready to configure. Click Next.
- Leave the Config type set to "Development Computer." Click Next.
- Leave the "User Strong Password Encryption for Authentication" choice set. Click Next.
- In the Root Account Password section, enter a MySQL Root Password and repeat the credential in the text field below it.
- If you see "Password strength: Weak", add numbers and symbols to the credentials.
- Save the credentials in a password manager. The username of this account is
root
.
- In the MySQL User Accounts section, click the Add User button.
- Enter a User Name.
- Change the Host to localhost.
- Enter a Password into the password field. Confirm the credential in the Confirm Password field.
- If you see "Password strength: Weak", add numbers and symbols to the credentials.
- Save the credentials in a password manager. These are the credentials that you will use in your application.
- Click OK.
- Click Next.
- In the Windows Service section, click Next.
- In the Server File Permissions section, click Next.
- Click Execute.
- Click Finish.
- MySQL Server shows a status of "Configuration complete." Click Next.
- Click Finish.
Test the Connection
If MySQL Workbench does not automatically start, click Search and type MySQL Workbench. Click on the MySQL Workbench 8.0 CE icon.
- Since "Start MySQL Workbench after setup" was checked, the MySQL Workbench application will start.
- Under the MySQL Connections section, click on Local instance MySQL80.
- Enter the root credentials into the password field.
- Check Save password in vault.
- Click OK.
Create a Database Schema
- Locate the Navigator pane on the left side of the window.
- At the bottom of the Navigator pane, click on Schemas.
- Right-click in the blank area inside of the Navigator pane.
- Click
Create Schema...
- Enter in the name of the database schema that you want to create.
- Click on the Apply button that appears at the bottom of that pane.
- In the Apply SQL Script to Database window, click Apply.
- Click Finish.
- Close MySQL workbench.