Installing MySQL on a Windows computer is a straightforward process, however selecting the right options is key for a smooth setup.
This is a simple how to for installing MySQL Community Server and MySQL Workbench on Windows. I recommend you walk through this yourself if learning MySQL and the configurations involved with administration. A lot of the configuration can be changed post install too.
Installing MySQL on Windows
Step 1: Download and Launch the MySQL Installer
Download the latest MySQL Community Server from the official MySQL website.
Run the downloaded MySQL Installer (.exe) file.
![MySQL install msi file](https://peter-whyte.com/wp-content/uploads/2019/09/downloads_mysql_installer.png)
Accept the License Agreement and click Next.
![MySQL License Agreement Windows](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_installer_license_agg.png)
Step 2: Choose Setup Type
Recommended: Select Custom Install to install only the components you need.
![MySQL Install Choose Setup](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_installer_choose_setup.png)
Step 3: Select Features to Install
Choose the following:
– MySQL Server
– MySQL Workbench
– MySQL ODBC Driver (optional for applications needing ODBC connectivity)
![MySQL Install Feature Selection](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_features_selected.png)
Step 4: Install Required Dependencies
If prompted, install Microsoft Visual C++ Redistributable.
Click Exectute to install all features selected.
![MySQL Install Features - Ready](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_feature_installation.png)
![MySQL Installing](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_installing.png)
Step 5: Configure MySQL Server
High Availability: Choose Standalone MySQL Server.
![MySQL Install High Availability](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_high_availability.png)
Select Development Computer as Config Type.
![MySQL Install Server Config Type](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_server_config_type.png)
Keep default Port 3306.
![MySQL Install Networking](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_networking.png)
Choose Strong Password Encryption (recommended for security).
![MySQL Install Authentication Type](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_authentication_type.png)
Set the Root Password: Enter a secure password for the MySQL root user.
![MySQL Install Root Password](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_root_pass.png)
Run as Windows Service: Select the default account or use a custom user.
![MySQL Install Run As Account](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_run_service_as.png)
Click Next and then Execute to apply configurations.
![MySQL Install Applying Config Update](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_applying_config.png)
Step 6: Verify Installation
Review the installation log to confirm success.
![MySQL Installation Log](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_log.png)
Click Finish to complete the process.
![](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_install_complete_run_wb.png)
Setting Up MySQL Workbench
Open MySQL Workbench and click + to add a new connection.
![MySQL Workbench Add New Connection](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_workbench_add_new_connection_arrow.png)
Enter a name for your connection (e.g., “Local MySQL 8.0”).
Leave connection settings as default (Host: 127.0.0.1, Port: 3306), at least if you are doing a local MySQL install like I am doing here.
![MySQL Workbench New Connection Window](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_workbench_new_connection_window.png)
Click Test Connection and enter your root password.
![MySQL Workbench New Connection Password](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_workbench_new_connection_password.png)
![MySQL Workbench Connection Test](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_workbench_new_connection_test.png)
Once successful, click OK to save the connection.
![MySQL Workbench New Connection](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_workbench_new_connection_in_wb.png)
Open the new connection and run SELECT * from sys.version
to confirm installation.
![MySQL Workbench SELECT Version](https://peter-whyte.com/wp-content/uploads/2019/09/mysql_wb_select_version.png)
Best Practices After Installation
Create New Users: Avoid using the root account for day-to-day tasks.
Enable Backups: Use MySQL Dump or automated backup solutions.
Secure MySQL: Run mysql_secure_installation
to enhance security settings.
Leave a Reply