MySQL连接服务器
连接报错:
2013- Lost connection to MySQL server at ‘waiting for initial communication packet’, system error.0 “Internal error/check(Not system error)”
解决方法:
vim /etc/my.cnf
在此处加入skip-name-resolve
跳过DNS反向解析过程.(这样就不能使用主机名连接mysql了,只能使用ip连接)
2.查看数据库信息报错
1227 - Access denied; you need (at least one of) the RELOAD privilege(s) for this operation
#给当前用赋值PROCESS的权限
grant process on *.* to 用户名;
#刷新权限
flush privileges;
3.连接之后没有报错,但是查看不了数据库.
解决办法:
把这个勾上
成功