The reason is that the mysql server version is inconsistent with the client version, common from other version of the database previously installed, then install MySQL4.1 or higher the database with the PHP connection to the PHP connection 1251 error message, no matter the password is correct, but never start Database Connectivity. Official solution is
http://dev.mysql.com/doc/mysql/en/old_client.html
One: mysql> set password for-> 'some_user' @ 'some_host' = Old_password ('newpwd'); this command is not entering set password for pressing Enter? 'Some_user' is your own new username? 'Some_host 'Write localhost?' Newpwd 'writes your own new password? Second: mysql> update mysql.user set password = Old_password (' newpwd ') -> where host =' some_host 'and user =' some_user '; mysql> flush privileges;
Note that '' appearing above, the symbol is not missing.