MySQL is a powerful, open-source database management system used for web applications, game servers, and enterprise software. This guide will show you how to install and configure MySQL on a Windows Server VPS.
📌 Prerequisites
-
A Windows Server VPS (2016, 2019, or 2022) from VolticHost
-
Administrator access
-
At least 2GB RAM (4GB+ recommended for production servers)
1️⃣ Download and Install MySQL Server
-
Go to the official MySQL Community Edition download page:
👉 https://dev.mysql.com/downloads/installer/ -
Download the MySQL Installer for Windows (Full or Web).
-
Run the installer and select "Server Only".
-
Click Next and install MySQL Server.
✅ MySQL is now installed!
2️⃣ Configure MySQL Server
-
Open MySQL Installer → Click MySQL Server → Reconfigure.
-
Select Standalone MySQL Server and click Next.
-
Choose "Development Machine" (for small VPS) or "Server Machine" (for production).
-
Set Port 3306 (default) and click Next.
-
Select Use Strong Password Encryption.
-
Set a Root Password (Store it securely!).
-
Click Next, then Execute to apply changes.
✅ Your MySQL server is configured!
3️⃣ Allow MySQL Through Windows Firewall
-
Open Windows Defender Firewall (
Win + R
, typewf.msc
, press Enter). -
Click Advanced Settings → Inbound Rules → New Rule.
-
Select Port → Click Next.
-
Choose TCP and enter 3306 (default MySQL port).
-
Click Next, select Allow the connection, and click Next again.
-
Apply the rule to Domain, Private, and Public networks.
-
Name the rule MySQL Port 3306 and click Finish.
✅ Your MySQL server is now accessible!
4️⃣ Test MySQL Connection
-
Open Command Prompt (Admin).
-
Connect to MySQL:
mysql -u root -p
-
Enter your MySQL root password.
-
If successful, you will see:
Welcome to the MySQL monitor... mysql>
✅ Your MySQL server is running!
5️⃣ (Optional) Allow Remote MySQL Connections
By default, MySQL only allows local connections. To enable remote access:
-
Open MySQL Command Line:
mysql -u root -p
-
Allow remote connections:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'yourpassword'; FLUSH PRIVILEGES;
-
Open
my.ini
file (default location:C:\ProgramData\MySQL\MySQL Server X.X\my.ini
) and find:bind-address = 127.0.0.1
Change it to:
bind-address = 0.0.0.0
-
Restart MySQL Service:
net stop mysql net start mysql
✅ Your MySQL server now allows remote connections!
6️⃣ Secure Your MySQL Server
-
Create a New Database User (Avoid Using Root):
CREATE USER 'voltichost'@'%' IDENTIFIED BY 'StrongPassword123!'; GRANT ALL PRIVILEGES ON *.* TO 'voltichost'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;
-
Enable Automatic Backups (Recommended for production servers).
-
Keep MySQL Updated using the MySQL Installer.
🎉 Conclusion
You've successfully installed and configured MySQL on a Windows VPS! Your database server is now ready for web applications, game servers, or enterprise use. 🚀
For further assistance, contact VolticHost Support.