Ubuntu16.04 安装mysql 5.7 登录mysql时报:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
网上找了一大堆解决方法,都无效,后来在stackoverflow上找到一个帖子:
执行:
sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
问题得以解决
连接 https://stackoverflow.com/questions/38095018/resetting-mysql-password-missing-mysqld-sock-file