Sample Header Ad - 728x90

How to start second MySQL instance on boot on Ubuntu 20.04?

0 votes
1 answer
252 views
I have a second MySQL 8 instance running on Ubunut 20.04, started by this command: mysqld_safe --defaults-file=/home/user/mysqld_replica.cnf & The config file contains all needed settings like port, socket and data dir. That works well but I can not figure out how to start the second instance on boot. What would be the recommended way to start both instances at boot time?
Asked by merlin (323 rep)
Jul 11, 2021, 04:58 PM
Last activity: May 19, 2025, 08:04 AM