Applicable to:
- Plesk for Windows
Question
How to add an additional local MySQL server in Plesk on Windows?
Answer
Note: Instructions below are just an example assuming MySQL 5.7 is installed and configured in Plesk.
Note: additional information can be found in the official documentation.
-
Log in to server using RDP.
-
Download MySQL service installer from the official site.
-
Run the MySQL installation file.
-
Press Add ... button.
-
Add MySQL server to the installation.
-
Proceed with the installation.
-
Specify TCP/IP port different from
3306
as it is used for MySQL server shipped with Plesk.Warning: MySQL servers do not work at the same time if they use the same configuration file and the same port.
-
Specify MySQL Root Password.
-
Proceed with MySQL installation.
-
Make sure that port
3307
is specified inmy.ini
configuration file for the second MySQL server installed. Default file location is Use file located inC:\ProgramData\MySQL\MySQL Server X.X\my.ini
:CONFIG_TEXT: port = 3307
-
Execute the command below in Command Prompt and open Windows Services:
C:\> services.msc
-
Make sure that there are two MySQL services running.
-
Go to Tools & Settings > Database Servers > Add database server .
-
Select MySQL in Database server type , specify a Host name or IP address, Port number and Authentication data of another MySQL server.
Note: By default, Administrator's username for additional MySQL server is
root
.
Comments
4 comments
Is this applicable for Plesk Obsidian Linux?
Hello Adrian Chan
This instruction is applicable for Windows servers only.
For Linux, we have corresponding suggestions.
Your goal may be achieved using Docker image:
https://www.plesk.com/blog/product-technology/plesk-docker-extension/
https://kb.virtubox.net/knowledgebase/how-to-run-mariadb-10-3-plesk-onyx-with-docker/
Hi Ivan,
Thanks!
I managed to get MySQL ver 5.6.32 installed in Win 10.
I wanted to know if there is issues if I were to install MariaDB ver 10.4 on it as well?
Must the ports be different?
Thanks
Hello Adrian Chan
Mind you, Plesk supports server versions of Windows only.
> Must the ports be different?
Different ports are to be used in case you want both servers to be running at the same time.
Please sign in to leave a comment.