Joomla 2.5 and mysql 8

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
corsair
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Sep 06, 2008 3:24 pm

Joomla 2.5 and mysql 8

Post by corsair » Sun Jul 17, 2022 7:49 pm

Hello,
Recently, my web server was updated to mysql 8 and my joomla 2.5 is not operating anymore.
I get: Database connection error (2): Could not connect to MySQL.
Any idea how to fix this?

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17445
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Joomla 2.5 and mysql 8

Post by toivo » Sun Jul 17, 2022 9:21 pm

corsair wrote:
Sun Jul 17, 2022 7:49 pm
I get: Database connection error (2): Could not connect to MySQL.
Any idea how to fix this?
Joomla 2.5 is probably expecting to use the database driver type 'mysql', defined in Global Configuration. The database driver type in PHP 8 is 'mysqli', which may not work in Joomla 2.5. Support for Joomla 2.5 ended in 2014 and the recommended version of PHP was 5.6.

Now is a good time to start planning to migrate the website to a supported version of Joomla 4.
Toivo Talikka, Global Moderator

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30942
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Joomla 2.5 and mysql 8

Post by Per Yngve Berg » Mon Jul 18, 2022 6:04 am

mysqli shouldn't be a problem. It's older than J2.5, but there may be other incompatibilities.

corsair
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Sep 06, 2008 3:24 pm

Re: Joomla 2.5 and mysql 8

Post by corsair » Mon Jul 18, 2022 11:59 am

Thanks for your responces,

I don't think php will be an issue, i am trying with php 5.6 (that was ok on previews server).
The issue i need to solve is the connection with mysql 8..

I know that it needs to upgrade but i want a temporary solution for now to be orperational..

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30942
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Joomla 2.5 and mysql 8

Post by Per Yngve Berg » Mon Jul 18, 2022 1:22 pm

You need to enable some legacy Authentication methods in mysql 8 to be able to connect old systems

corsair
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Sep 06, 2008 3:24 pm

Re: Joomla 2.5 and mysql 8

Post by corsair » Mon Jul 18, 2022 1:33 pm

Thanks for your responce, do you suggest to do it (enable legacy Authentication methods in mysql 8 server wide) ?
I think this will effect badly the server security..
Is there any other way to make it work?

corsair
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Sep 06, 2008 3:24 pm

Re: Joomla 2.5 and mysql 8

Post by corsair » Mon Jul 18, 2022 4:29 pm

Update.. I enabled legacy Authentication methods in mysql 8 but still no luck..
Same error..


Locked

Return to “General Questions/New to Joomla! 2.5”