dpkg: error processing package mysql-server-5.7 (--configure

Ubuntu
回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

dpkg: error processing package mysql-server-5.7 (--configure

文章 yehlu »

http://askubuntu.com/questions/760724/1 ... sql-server

代碼: 選擇全部

The instructions @andrew-beerman posted are on the right track, though they aren't quite clear to me and seem to recommend more than is necessary. I pieced together the answer from the above and a helpful post in the bug thread.

These are the steps I took to correct this:

Back up your my.cnf file in /etc/mysql and remove it
Remove the folder /etc/mysql/mysql.conf.d/
Verify you don't have a my.cnf file stashed somewhere else (I did in my home dir!)
Backup and remove /etc/mysql/debian.cnf files (not sure if needed, but just in case)
sudo apt purge mysql-server mysql-server-5.7 mysql-server-core-5.7
sudo apt install mysql-server
That got it working!
回覆文章

回到「Ubuntu」