service mysqld start,Failed to start mysqld.service: Access denied

时间:2022-01-14 07:55:24

service mysqld start 然后报:

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'mysqld.service'.
Authenticating as: lll,,, (lll)
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to start mysqld.service: Access denied
See system logs and 'systemctl status mysqld.service' for details.

其实是没有权限访问之类的,所以用sudo就可以啦。