tonny-zhang / tonny-zhang.github.com

4 stars 1 forks source link

mysql相关 #64

Open tonny-zhang opened 7 years ago

tonny-zhang commented 7 years ago

ubuntu 16.04 无法启动 mysql 问题

相关参考

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!) or in /etc/alternatives/my.cnf. 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 In case your syslog shows an error like "mysqld: Can't read dir of '/etc/mysql/conf.d/'" create a symbolic link ln -s /etc/mysql/mysql.conf.d /etc/mysql/conf.d Then the service should be able to start with service mysql start. That got it working!

tonny-zhang commented 7 years ago

ubuntu 16.04 下更改 apt 源并安装 mysql

http://www.jianshu.com/p/c9aeb5f97f52