Page 1 of 1

XAMPP downgrade

PostPosted: 28. December 2012 17:38
by gogy82
Hello,

I made a search for my problem and it seems that the best way will be to downgrade XAMPP. I am currently running version 1.8.1 and script was made about 2-3 years ago which means that version is not important to me.

I have some local PHP script which is connecting to local database and also to external remote database on shared hosting. On old computer I had older version of XAMPP (not currently sure which it was) and now while making database connection with new XAMPP version I receive this error

Code: Select all
Warning: mysql_connect(): 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 C:\xampp\htdocs\xxxxxxxxxxxxx\db.php on line 13


I believe it means that there were some changes in new versions of MySQL and PHP but as the connection is on shared hosting, I cannot make changes as this description asks me to do or other solutions found while Googling.

I also searched how to downgrade properly but could not found some straightforward details.

Could you point me with some link where I can read instructions about proper downgrade?

I would also ask for pointing me to which XAMPP version is the latest stable and still working for my script.

Thank you

Best regards
Goran

P.S. Please add 1.8.1 version to profile drop-down.

Re: XAMPP downgrade

PostPosted: 28. December 2012 20:16
by JJ_Tagy
You should be able to downgrade using the same procedures as the upgrade in the stickies. Back up your data, export your sql, uninstall everything, install older version, import sql.

Re: XAMPP downgrade

PostPosted: 29. December 2012 00:06
by gogy82
Thank you

Which XAMPP version should I download to have this working properly?

Re: XAMPP downgrade

PostPosted: 31. December 2012 17:48
by Altrea
Hi gogy82,

My recommandation would be to talk to your hoster if he can do the changes to the database tables which are needed to use the new password hashing mechanism.
MySQL 4.1 which comes with the new mechanism was released in october 2004, i think 8 years is enough time to rely on an old, insecure mechanism.
If he don't want to change that i would change the hoster.

The other possibility (which i would not recommend) is to use an XAMPP version with PHP version < 5.3 (e.g. XAMPP 1.7.1 with PHP 5.2.9). These components are all out of date and can contain security issues which can make your own system insecure if anything of that is accessible from the internet.

best wishes,
Altrea

Re: XAMPP downgrade

PostPosted: 04. January 2013 08:32
by gogy82
Altrea, thank you for your response.

I would like to narrow down the solution for the support person of my hosting. Do you have any tutorial/guidance or link what exactly should be done to change/support this? I would also be more then happy if I don't need to do anything on my side, but I would also like to help out on the other side to shorten their work.

Best regards
Goran

Re: XAMPP downgrade

PostPosted: 04. January 2013 12:01
by Altrea
The first answer of this stackoverflow question covers all what is needed for this issue.

best wishes,
Altrea

Re: XAMPP downgrade

PostPosted: 05. January 2013 12:15
by gogy82
Done by hosting support! Thank you very much.

You have interesting signature :D

I still don't see 1.8.1 version in members profile drop-down, but it doesn't matter ;)