How to Install Mysql Database
📌 How to Install MySQL Database
🔹 Install MySQL on Windows
1. Download the MySQL Installer from
here.
2. Choose "Web Community" or "Full version".
3. Run the installer and follow the setup wizard.
4. Set a **root password** during installation.
5. Open **Command Prompt** and verify installation:
mysql -u root -p
🔹 Install MySQL on macOS
1. Open **Terminal** and install using Homebrew:
brew install mysql
2. Start MySQL service:
brew services start mysql
3. Secure MySQL by running:
mysql_secure_installation
🔹 Install MySQL on Linux (Ubuntu)
1. Open **Terminal** and update the package list:
sudo apt update
2. Install MySQL:
sudo apt install mysql-server
3. Secure MySQL:
sudo mysql_secure_installation
📌 Verify Installation
After installation, check if MySQL is working by running:
mysql -u root -p
🔗 More Resources