Applicable to:
- Plesk for Windows
Question
How to add an additional local MySQL/MariaDB 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/MariaDB service installer from the official site.
-
Run the MySQL/MariaDB installation file.
-
Press Add ... button.
-
Add MySQL/MariaDB server to the installation.
-
Proceed with the installation.
-
Specify TCP/IP port different from
3306
as it is used for MySQL/MariaDB server shipped with Plesk.Warning: MySQL/MariaDB servers do not work at the same time if they use the same configuration file and the same port.
-
Specify MySQL/MariaDB Root Password.
-
Proceed with MySQL/MariaDB installation.
-
Make sure that port
3307
is specified inmy.ini
configuration file for the second MySQL/MariaDB server installed. Default file location is Use file located inC:ProgramDataMySQLMySQL Server X.Xmy.ini
:port = 3307
-
Execute the command below in Command Prompt and open Windows Services:
C:> services.msc
-
Make sure that there are two MySQL/MariaDB services running.
-
Go to Tools & Settings > Database Servers > Add database server .
-
Select MySQL/MariaDB 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/MariaDB server is
root
.