Database connection error (1): The MySQL adapter 'mysqli' is not available

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
alejoferguson
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Jul 07, 2016 3:20 pm

Database connection error (1): The MySQL adapter 'mysqli' is not available

Post by alejoferguson » Tue Mar 27, 2018 6:06 pm

Hello!
Every time i load my website it shows this message:
"Database connection error (1): The MySQL adapter 'mysql' is not available."

I went to the configuration.php file and add the mysql
public $dbtype = 'mysql';

Then i load the site and get the following error:
"Database connection error (1): The MySQL adapter 'mysqli' is not available."

So i add the mysql extension in the php.ini file:
extension = php_mysqli.dll
extension = php_mysql.dll

But the issues is still. My Php Version is 5.4.45


Here is my website: http://designfoodies.com/


thanks sos much for any help or idea to fix it
Last edited by toivo on Tue Mar 27, 2018 7:18 pm, edited 1 time in total.
Reason: mod note: moved, not related to Performance

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

Re: Database connection error (1): The MySQL adapter 'mysqli' is not available

Post by toivo » Wed Mar 28, 2018 7:06 am

What was changed in the configuration before this error started? Was this Joomla 2.5 site working before?

Is this a Windows server on your workstation, 'localhost'? If not, talk to your host.
Toivo Talikka, Global Moderator

alejoferguson
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Jul 07, 2016 3:20 pm

Re: Database connection error (1): The MySQL adapter 'mysqli' is not available

Post by alejoferguson » Wed Mar 28, 2018 2:02 pm

toivo wrote:What was changed in the configuration before this error started? Was this Joomla 2.5 site working before?

Is this a Windows server on your workstation, 'localhost'? If not, talk to your host.
Im not sure what was changed before they gave me the hosting and it was already this way. So, you think is a new joomla version that affect this?

This is the server information:
Server Information
Item Detail
Hosting Package Reseller_Deluxe
Server Name p3plcpnl0515
cPanel Version 62.0 (build 40)
Apache Version 2.4.29
PHP Version 5.4.45
MySQL Version 5.6.39-cll-lve
Architecture x86_64
Operating System linux
Dedicated IP Address 23.229.181.105
Local IP Address 23.229.181.105
Path to Sendmail /usr/sbin/sendmail
Path to Perl /usr/bin/perl
Perl Version 5.10.1
Kernel Version 2.6.32-773.26.1.lve1.4.46.el6.x86_64

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

Re: Database connection error (1): The MySQL adapter 'mysqli' is not available

Post by toivo » Wed Mar 28, 2018 2:18 pm

alejoferguson wrote:So i add the mysql extension in the php.ini file:
extension = php_mysqli.dll
extension = php_mysql.dll
You have a Linux server. Linux does not run DLL files, they belong to the Windows platform.

Talk to your host, GoDaddy, and they should be able to add the missing MySQL support library.

Otherwise, if you are still running Joomla! 2.5, it is high time to start planning migration to a supported version.
Toivo Talikka, Global Moderator


Locked

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