MySQL Router how to set windows service name

637 views Asked by At

How to set Windows service name with MySQL Router?

As per documentation there is only the option of --install-service, but as it seems, it is a fixed name "MySQLRouter".

$ mysqlrouter --config "C:\mysql-router\mysqlrouter.conf" --install-service

I've tried passing the service name, as one would do in MySQL Server, but it overwritten the service named "MySQL Router".

How to add multiple MySQL Router services?

1

There are 1 answers

2
Ankit Jindal On

Before installing MySQL as a Windows service, you need to first stop the current active server. If it is still running use below command to stop:

cd C:
C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqladmin" -u root shutdown

Install the server as a service using this command:

C:\> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld" --install