连接不上mysqlworkbench问题解决方法
连接mysqlworkbench出现如下提示:
查看ip
加入host的范围
mysql> select user,host from mysql.user;
+-------------+---------------+
| user | host |
+-------------+---------------+
| root | 127.0.0.1 |
| zejin | 192.168.%.% |
+-------------+---------------+
| user | host |
+-------------+---------------+
| root | 127.0.0.1 |
| zejin | 192.168.%.% |
还是连接不上
mysql> flush privileges;
Query OK, 0 rows affected (0.04 sec)
Query OK, 0 rows affected (0.04 sec)
终于成功。记得权限类的要flush privileges!