summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-02-24 18:00:01 +0000
committerAndrey Hristov <andrey@php.net>2010-02-24 18:00:01 +0000
commitdd57bddd534eef1890ec5e258733f9b7d5dc5f47 (patch)
tree4cfb74b8d84dc066b9f9c9ac0651b9308ae92411
parent8791ed752d067d3fb40af03826f9310c54efdca6 (diff)
downloadphp-git-dd57bddd534eef1890ec5e258733f9b7d5dc5f47.tar.gz
add better description to the problem
-rw-r--r--ext/mysqlnd/mysqlnd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
index 4ac6077a16..a03486def3 100644
--- a/ext/mysqlnd/mysqlnd.c
+++ b/ext/mysqlnd/mysqlnd.c
@@ -57,7 +57,11 @@ extern MYSQLND_CHARSET *mysqlnd_charsets;
-PHPAPI const char * const mysqlnd_old_passwd = "mysqlnd cannot connect to MySQL 4.1+ using old authentication";
+PHPAPI const char * const mysqlnd_old_passwd = "mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Your password has length of 16. "
+"Please execute the SET PASSWORD command (`SET PASSWORD = PASSWORD('your_existing_password')`) with the "
+"help of a administration tool to set your password again. This will store a new, and more secure, hash value with the length of 41, in mysql.user. If you are using PHP 5.2 or earlier to "
+"connect to this database you might need to remove the old-passwords flag from your my.cnf";
+
PHPAPI const char * const mysqlnd_server_gone = "MySQL server has gone away";
PHPAPI const char * const mysqlnd_out_of_sync = "Commands out of sync; you can't run this command now";