I have installed Percona MySQL server as mysqld user. I want only this user to start/shutdown the instance/server.
What should be input to the parameter in my.cnf file?
[mysqld]
user=???
Thanks!
I have installed Percona MySQL server as mysqld user. I want only this user to start/shutdown the instance/server.
What should be input to the parameter in my.cnf file?
[mysqld]
user=???
Thanks!
Starting/stopping MySQL is done via systemctl
which typically requires root privileges.
[mysqld]
user=mysql
The above configuration is the user that mysqld will “drop” down to after being started by root. You probably need to use visudo
to give your mysqld
OS user privileges to run specific systemctl commands for starting/stopping.
Unanswered | Unsolved | Solved
MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright © 2006 - 2024 Percona LLC. All rights reserved.