mysql安装完成后
使用:
#mysql -u root -p 可以进入mysql
但是用jdbc不能访问,报
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial
communication packet', system error: 111
编辑/etc/mysql/my.cnf
注释# skip-networkin
添加 bind-address =your server ip
出现 ERROR 2013 (HY000): Lost connection to MySQL server at 'reading
initial communication packet', system error: 104
编辑/etc/mysql/my.cnf
[mysqld] 段增加一个启动参数 
skip-name-resolve 
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial
communication packet', system error: 0 
编辑/etc/hosts.allow,加上这一行
mysqld: ALL 
杰森 
邮箱:json.shen(at)gmail.com
网站:www.shenjia.org
	posted on 2010-07-11 17:27 
杰森 阅读(673) 
评论(0)  编辑  收藏  所属分类: 
DataBase 、
Linux&Unix