mysql安裝完成后
使用:
#mysql -u root -p 可以進(jìn)入mysql
但是用jdbc不能訪問(wèn),報(bào)
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
出現(xiàn) ERROR 2013 (HY000): Lost connection to MySQL server at 'reading
initial communication packet', system error: 104
編輯/etc/mysql/my.cnf
[mysqld] 段增加一個(gè)啟動(dòng)參數(shù)
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
網(wǎng)站:www.shenjia.org
posted on 2010-07-11 17:27
杰森 閱讀(651)
評(píng)論(0) 編輯 收藏 所屬分類:
DataBase 、
Linux&Unix