[Seek Help] 【已解决】deepin升级后mysql不能启动了
Tofloor
poster avatar
imic07
deepin
2021-03-25 20:52
Author

之前(2月份前)是能通过命令systemctl start mysql启动的。

今天使用此命令启动不了,查看日志,发现是pam_deepin_authentication的原因,这个需要怎么破:

3月 25 12:41:46 imic-PC polkit-agent-helper-1[27916]: pam_deepin_authentication(polkit-1:auth): Cannot get original tty attributes: Inappropriate ioctl for device
3月 25 12:41:46 imic-PC polkit-agent-helper-1[27916]: pam_deepin_authentication(polkit-1:auth): Password
3月 25 12:41:46 imic-PC polkit-agent-helper-1[27916]: pam_deepin_authentication(polkit-1:auth): Password:
3月 25 12:41:50 imic-PC polkit-agent-helper-1[27916]: pam_deepin_authentication(polkit-1:auth): Verification successful
3月 25 12:41:50 imic-PC pkexec[27912]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
3月 25 12:41:51 imic-PC daemon/dock[4189]: app_entry.go:239: attach window id: 216006669, wmClass: "dde-file-manager" "dde-file-manager", wmState: [], wmWindowType: [405], wmAllowedActions: [538 539 508 540 542 54
3月 25 12:42:00 imic-PC polkit-agent-helper-1[28069]: pam_deepin_authentication(polkit-1:auth): Cannot get original tty attributes: Inappropriate ioctl for device
Reply Favorite View the author
All Replies
thepoy
deepin
2021-03-25 21:10
#1

用docker

Reply View the author
imic07
deepin
2021-03-25 22:59
#2

docker确实可以。

这里出问题的原因是因为MySQL读取配置文件的顺序是:

读取顺序:/etc/my.cnf > /etc/mysql/my.cnf > /usr/etc/my.cnf > ~/.my.cnf

读取后,后面的配置文件会覆盖前面的配置文件。

因为我使用的是/etc/my.cnf  所以把 /etc/mysql/my.cnf 删除,再启动mysql就没有问题了。

另外说下,我之前是把/etc/mysql/my.cnf 删除了的。因为2月份有次升级系统,没有这个文件要报错,所以手动把它补回来了。

Reply View the author
deepinuser17
deepin
2021-03-26 07:34
#3

可以用systemctl status查看应用出错信息.

 

systemctl status mysql
Reply View the author