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
杰森 閱讀(651)
評論(0) 編輯 收藏 所屬分類:
DataBase 、
Linux&Unix