On 14.12.2011 12:42, Marc Delisle wrote:
> Le 2011-12-13 13:18, Timothy Madden a écrit :
>> On 12.12.2011 13:45, Reindl Harald wrote:
>>>
>>>
>>> Am 12.12.2011 12:39, schrieb Timothy Madden:
>>>> On 08.12.2011 22:30, Reindl Harald wrote:
>>>>>
>>>>>
>>>>> Am 08.12.2011 21:11, schrieb Timothy Madden:
>>>>>> On 08.12.2011 19:30, Timothy Madden wrote:
>>>> [...]
>>>>>> I found the cause, my php 5.3.8 uses the new mysqlnd driver (see 'mysql
>>>>>> client api' in phpinfo() output), which uses 41-bit password hashes.
>>>>>> However some older versions of mysql (I have 5.0.77) generate 16-bit
>>>>>> password hashes from GRANT statements or PASSWORD('...') function
>>>>>> invocations.
>>>>>>
>>>>>> However for some strange reason mysql clients seem to be able to connect
>>>>>> to such servers even if you generate the 41-bit password hash separately
>>>>>> and use that in your GRANT statement. In my case I just used
>>>>>> PASSWORD('...') function in a new version of mysql server on my local host.
>>>>>>
>>>>>> Could phpmyadmin please detect this (frustrating) problem and output
>>>>>> some helpful message (instead of 'could not login') like 'You may need
>>>>>> to check for a 41-bytes password hash in mysql.user table' ?
>>>>>
>>>>> it is NOT the job of phpMyAdmin take car that you migrate
>>>>> your passwords since they are deprecated SINCE YEARS
>>>>>
>>>>> they are deprecated since 5.0, there was 5.1 between and now
>>>>> mysql is on 5.5 - a long time to take care of this
>>>>
>>>> You may call it "deprecated for years", but I have an up-to-date CentOS
>>>> x64 release 5.7 (Final), and mysql 5.0.77 is the current mysql server
>>>> there. CentOS is an actively maintained Linux distribution with package
>>>> updates every week. I believe there are other distributions too that
>>>> prefer old versions for their packages for stability.
>>>
>>> and what does this change in the fact that "old_passwords=1" in my.cnf
>>> is deprecated since MySQL 5.0 what you have installed?
>>
>> This is not only about old_passwords. Setting the the value to 0 does
>> not solve the login problem (I tried it).
>>
>> The issue here is that phpmyadmin can not login to the database, when
>> the command line client can, and the user gets no message about what the
>> problem is.
>>
>> Thank you,
>> Timothy Madden
>
> Timothy,
>
> The exact error I get is:
>
> #2000 Cannot log in to the MySQL server
>
> is it the same for you?
Yes, I placed screenshot with it on the feature request tracker.
Alternatively, a page with short descriptions for these codes (#2000)
and a link, directly from the reported error message, to the description
would be a nice solution to the issue, too. Even if not all the codes
get to have a description...
Timothy Madden
|