Slackware 14上的MariaDB 5.5需要更改为新的密码格式

奇怪的是,这工作很好,但我的电脑最近重新启动,现在我的PHP应用程序将无法正常工作:

mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file [2000]

我看到的解决办法是closuresmysqlconfiguration中的old_passwords,除非它在我的my.cfg中没有打开(该选项根本不存在,添加它什么也没有改变),也不会在控制台中改变:。

 > SET SESSION old_passwords=FALSE; ERROR 1231 (42000): Variable 'old_passwords' can't be set to the value of '0' 

我试图看看密码哈希:

 > select password('test'); +------------------+ | password('test') | +------------------+ | 378b243e220ca493 | +------------------+ 

而且很短。 网上没有什么可以find的,为什么这样做,mariadb文档说,它应该是41个字符长,但它不是,它是打破所有的PHP 5.4的东西。

我没有想到只是忘了它,重新安装一个旧的PHP或什么的。 其他人看到这个? 理想情况下,我想密码使用新的哈希格式,所以PHP的作品。