Install
Installation
Windows
Option 1: MySQL Installer
Download from mysql.com
Choose Developer Default or Server Only
Configuration:
Port:
3306Set root password
Enable MySQL as Windows service
Option 2: XAMPP
Download from apachefriends.org
Start MySQL from XAMPP Control Panel
Data Directory:
C:\xampp\mysql\dataConfig File:
C:\xampp\mysql\bin\my.ini
Linux
Debian/Ubuntu:
CentOS/RHEL:
macOS
Using Homebrew:
Or:
Download the .dmg installer from MySQL website
Post-Installation
Secure MySQL setup:
Start/Stop MySQL:
Linux/macOS:
Windows:
Or: Use XAMPP Control Panel
Connecting to MySQL
CLI:
Remote Connections
Step 1: Allow external connections
Edit my.cnf or my.ini:
Step 2: Create remote user:
Port Configuration
Default Port:
3306To change it:
Config file paths:
Linux/macOS:
/etc/mysql/my.cnfWindows:
C:\xampp\mysql\bin\my.ini
Last updated