MySQL仅以安全模式启动

时间:2016-10-14 01:46:39

标签: mysql

看来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 .

1 个答案:

答案 0 :(得分:0)

克服的步骤

  1. 转到MySQL Workbench下的编辑 - >偏好设置菜单。
  2. 取消选中" 安全更新"。
  3. 重新启动WorkBench。
  4. 附件是屏幕截图Screenshot from MySQL Workbench