0

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?

JPBorges
  • 53
  • 5

1 Answers1

0

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
Ankit Jindal
  • 3,672
  • 3
  • 25
  • 37