Installing MySQL Server
Site Admin
· 11 Sep 2026
· 2 views
Downloading MySQL
Visit the official MySQL community downloads page and choose MySQL Community Server for your operating system. On Windows, the MSI installer is the easiest path; on Linux you normally use the package manager; on macOS the DMG or Homebrew works well.
Installing on Windows
- Run the MSI installer and choose Server only for a plain server.
- Select a setup type and accept the default TCP port 3306.
- Set a strong root password. Do not forget it.
- Choose whether MySQL should run as a Windows service.
- Finish the wizard, then open MySQL Workbench to connect.
Installing on Ubuntu / Debian
sudo apt update
sudo apt install mysql-server
sudo systemctl enable --now mysql
sudo mysql_secure_installation
sudo mysql -u root -pVerifying the Install
mysql --version
mysqladmin -u root -p statusYou should see the version string and server uptime. If the service will not start, check the error log at /var/log/mysql/error.log on Linux.
Connecting to the Server
mysql -u root -p
Once connected you are inside the MySQL monitor and can run SQL statements directly. Type exit to leave.
Key Points
- MySQL listens on TCP port 3306 by default.
- Use
mysql_secure_installationto remove insecure defaults. - MySQL Workbench is the official graphical client.
- Verify with
mysqladmin statusafter install.