看来MySQL实例只在我发出skip-grant-tables时启动,当我以正常方式启动它时,服务mysql启动我无法连接到socket。
我见过很多解决方案但没有任何效果。
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock nice = 0
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
bind-address = 127.0.0.1
key_buffer = 16M
max_allowed_packet = 16M
/var/run/mysqld# ls -atlr
total 0
drwxr-xr-x 22 root root 720 Oct 14 01:05 ..
drwxr-xr-x 2 mysql mysql 40 Oct 14 02:33 .
答案 0 :(得分:0)
克服的步骤
附件是屏幕截图Screenshot from MySQL Workbench。