Last updated
Last updated
This guide will help you set up MySQL for your development environment. Additionally, you have the option to install MySQL Workbench, a powerful tool for managing your MySQL databases. Follow these steps to get started with MySQL.
A computer running Windows, macOS, or Linux
Administrator privileges for installing software
Download MySQL Installer:
Go to the .
Click on "MySQL Installer for Windows" and download the installer.
Run the Installer:
Open the downloaded installer.
Choose the setup type (Developer Default is recommended).
Follow the on-screen instructions to complete the installation.
Configure MySQL Server with a root password and set up any other required configurations.
Verify Installation:
Open Command Prompt.
Run the following command to verify the installation:
You should see the installed version of MySQL.
Download MySQL DMG Archive:
Select macOS as your operating system and download the DMG archive.
Install MySQL:
Open the downloaded .dmg
file.
Run the MySQL installer package.
Follow the on-screen instructions to complete the installation.
Configure MySQL Server with a root password during the installation process.
Start MySQL Server:
Open System Preferences and go to MySQL.
Start the MySQL server.
Verify Installation:
Open Terminal.
Run the following command:
You should see the installed version of MySQL.
Add MySQL APT Repository:
Open Terminal and run the following commands (for Ubuntu/Debian-based distributions):
Install MySQL Server:
Run the following command:
During the installation, you will be prompted to set a root password.
Start MySQL Server:
Ensure MySQL server is running:
Verify Installation:
Run the following command:
You should see the installed version of MySQL.
Download MySQL Workbench:
Select the appropriate version for Windows and download the installer.
Run the Installer:
Open the downloaded installer.
Follow the on-screen instructions to complete the installation.
Launch MySQL Workbench:
Open MySQL Workbench from the Start Menu or Desktop.
Download MySQL Workbench:
Select the appropriate version for macOS and download the DMG archive.
Install MySQL Workbench:
Open the downloaded .dmg
file.
Drag the MySQL Workbench icon to the Applications folder.
Launch MySQL Workbench:
Open MySQL Workbench from the Applications folder.
Download MySQL Workbench:
Select the appropriate version for your Linux distribution and download the package.
Install MySQL Workbench:
For Ubuntu/Debian-based distributions, use the following commands:
Launch MySQL Workbench:
Open MySQL Workbench from the applications menu or run mysql-workbench
from the terminal.
Go to the .
Go to the .
Go to the .
Go to the .