• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

URGENT HELP!! Upgrade to PHP 5.3 on Plesk 8.6. MySQL old authentication errors.

B

buddychrist

Guest
Hello.

I am trying to upgrade PHP to 5.3 version. Everything is ok except i get errors with mysql authentication:

Cannot connect to MySQL 4.1+ using old authentication

I know it is related to the way PLESK stores database passwords on a table with char(16). I have altered the table to varchar(41) and used "Set old_passwords=0;" followed by "Update db_user set passwd=PASSWORD('desiredpassword') where login='targetuser';" to update passwords schema.

I also modified "my.ini" files disabling "old_passwords" tag and restarted MySQL and Web Services.

No way. Despite all efforts i am still getting MySQL 4.1+ using old authentication errors and plesk keep storing passwords with old schema.

Please. I want to use PHP 5.3 cause seriously improves PHP performance on Windows but get stack at this point.

Anybody could help me?
Thanks a lot!!
Ivan
 
Finally solved via mysql command line client:

mysql -P3306 -uadmin -P<password>

use mysql;

SHOW VARIABLES LIKE 'old_passwords';

SET old_passwords=0;

You can check which routine will be used by taking a look at the mysql.users table (with an account that has access to that table)

SELECT `User`, `Host`, Length(`Password`) FROM mysql.user;

This will return 16 for accounts with old passwords and 41 for accounts with new passwords (and 0 for accounts with no password at all, you might want to take care of those as well).

To update a user's password:

SET PASSWORD FOR 'user'@'%'=PASSWORD('password');
FLUSH Privileges;

No more PHP 5.3 mysql auth problems.
 
Back
Top