Why do I get Database connection error (1): The MySQL adapter 'mysqli' is not available.

When there is nothing wrong with my installation folder. I am using XAMPP.

[SOLVED]

I struggled with this for a day when I suddenly got this error on my local xampp server. After finding out bits and pieces from various forums here is how I fixed it.

First I made a back-up of my xampp folder.
Then I went into the xampp folder, non back-up folder, and renamed the php folder to php-old
Then I installed xampp over top (it did keep all my files and databases so I did not lose them, no promises though so thus the back-up folder in step one.)
Up and running with no errors.

The apparent conflict is somewhere in the php file. Option #2 is to download a new version of PHP and copy the files directly over the php files. I can't really comment on it though as I have not tested it. Just an option if you are more comfortable doing that :)
Responses (2)
 
Well,the version of nginx which I use is 1.5.3, and the version of PHP is 5.4.31
the version of joomla is v3.3.3

the file configuration.php doesn't contains "public $dbtype = 'mysqli'"
what should I do?

the problem still exist
 
__________________________________________________________
 
I solved this problem by:

Open configuration.php and change this line:
public $dbtype = 'mysqli';
to this
public $dbtype = 'mysql';

thanks to this site:http://www.maxofweb.com/2013/02/solve-database-connection-error-1-mysql.html#.ucx8m70uvf8

Dont Miss Our Newsletter

I agree with the Terms and Conditions

Copyright © 2006-2018 Richard Bankert Web Design. All Rights Reserved. Post by Richard Bankert
111 Centennial Dr., Dauphin, Manitoba, R7N 2W8 - 204-648-4952 - This email address is being protected from spambots. You need JavaScript enabled to view it.

Richard Bankert Web Design is a Dauphin, Manitoba, Canada, Web Designer and a Web Design Company specializing in Web Design, Web Development,Content Management Solutions and E-Commerce using CMS solutions. Joomla! is a trademark of Open Source Matters. Richard Bankert Web Design is not affiliated with or endorsed by the Joomla! Project or its trademark owners.