Bug 991070
Summary: | php cannot connect (authenticate) to MariaDB using old-style passwords | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Carl Roth <roth> | ||||
Component: | php | Assignee: | Joe Orton <jorton> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 19 | CC: | fedora, jorton, rpm | ||||
Target Milestone: | --- | Keywords: | CommonBugs | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | https://fedoraproject.org/wiki/Common_F19_bugs#php-mysqlnd | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-08-01 17:57:47 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Carl Roth
2013-08-01 14:06:00 UTC
Created attachment 781619 [details]
output from mysql 'show global variables'
old_password (for pre < 4.1 client) are deprecated and no more accepted. Please rerun the same test with old_password=0. Please check if you have run mysql_upgrade. also try using 127.0.0.1 (tcp connection) instead of localhost (local socket) (In reply to Remi Collet from comment #2) > old_password (for pre < 4.1 client) are deprecated and no more accepted. > Please rerun the same test with old_password=0. Same issue. The only difference is that new passwords generated with old_password=0 are of the 'new' type (41 character hash). > > Please check if you have run mysql_upgrade. Yes it was upgraded. > > also try using 127.0.0.1 (tcp connection) instead of localhost (local socket) Right, I played around with this a bit more and I think my problem is that I have some 'old' mysql passwords still (my mysql instance is very very old). I reproduced the issue with mysqli instead, and got a more useful error: HP Warning: mysqli::mysqli(): (HY000/2000): 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 in php shell code on line 1 I then tried to (1) re-hash the test password, and (2) point php to an existing account that I knew had a 'long' password. Both of those cases worked. I think this resolves my php issue; perhaps this incompatibility should be in the release notes? Note added in https://fedoraproject.org/wiki/Common_F19_bugs#PHP_cannot_connect_to_MariaDB.2FMySQL_using_old_password Closing this one. |