본문 바로가기

Dev/PHP

PHP Warning: mysql_connect(): Premature end of data

PHP Warning:  mysql_connect(): Premature end of data (mysqlnd_wireprotocol.c:554) in


이런 에러가 뜬다면 비밀번호를 신규 암호화 해야한다.


UPDATE mysql.user SET Password = PASSWORD('newpwd') WHERE Host = 'some_host' AND User = 'some_user';


출처: http://phpschool.com/gnuboard4/bbs/board.php?bo_table=qna_install&wr_id=97541&sca=&sfl=wr_name&stx=%B1%D7%B3%D7&sop=and&page=5


http://stackoverflow.com/questions/6099434/premature-end-of-data-error-with-php