Note on Installing MySQL
Installing MySQL involves downloading the MySQL server, configuring it, and setting up the
environment for database development. Below is a brief guide for installing MySQL on different
platforms.
1. Installing MySQL on Windows
Steps:
- Download the MySQL Installer from https://dev.mysql.com/downloads/installer
- Run the installer and choose "Developer Default" or "Server Only"
- Configure MySQL server: choose configuration type, set port (default: 3306), set root password
- Complete installation and optionally install MySQL Workbench
2. Installing MySQL on Linux (Ubuntu)
Steps:
$ sudo apt update
$ sudo apt install mysql-server
Secure the installation:
$ sudo mysql_secure_installation
Access MySQL:
$ sudo mysql
3. Installing MySQL on macOS
Using Homebrew:
$ brew update
$ brew install mysql
$ brew services start mysql
Access MySQL:
$ mysql -u root
Optional Tools:
- MySQL Workbench: GUI for queries and design
- phpMyAdmin: Web-based MySQL interface
Default Credentials (First Time):
- Username: root
- Password: Set during installation