如何修复MySQL权限被拒绝的错误

时间:2019-12-18 08:35:00

标签: mysql authentication configuration passwords root

deepak@deepak-Inspiron-3542:~$ /etc/init.d/mysql stop
[ ok ] Stopping mysql (via systemctl): mysql.service.
deepak@deepak-Inspiron-3542:~$ mysqld_safe --skip-grant-tables &
[1] 7431
deepak@deepak-Inspiron-3542:~$ 2019-12-18T08:19:48.065094Z mysqld_safe Logging to syslog.
2019-12-18T08:19:48.157044Z mysqld_safe Logging to '/var/log/mysql/error.log'.
/usr/bin/mysqld_safe: 152: /usr/bin/mysqld_safe: cannot create /var/log/mysql/error.log: Permission denied
2019-12-18T08:19:48.165196Z mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists.
/usr/bin/mysqld_safe: 152: /usr/bin/mysqld_safe: cannot create /var/log/mysql/error.log: Permission denied

0 个答案:

没有答案