A few words of thanks would be greatly appreciated.

The MySQL adapter "mysql" is not available

MySQL is a RDBMS which can run as a server in a computer system and can provide multi-user access to one or more databases. Apache and MySQL can be integrated to build software systems where access to databases may be required. Configuration issues may lead to problems in connecting to the MySQL databases. If the MySQL adapter is not available, the php.ini file may be changed to include the parameter for the MySQL adapter in the dynamic extension section. After including the php_mysql.dll, a connection to the MySQL database can be made from a PHP script.


I was going to install Joomla in XP, but I get the following error message:

"Unable to connect to the database: The MySQL adapter "mysql" is not available".

MySql is running smoothly when I login through the command line. I'm using Apache.


Try locating and setting the following parameter in your php.ini (it is in the Dynamic Extensions section):


Prior to this change, I could make a simple php script without mysql run, like this:

but not another one like this

echo mysql_connect ('localhost', '<yourwebuser>', '<yourwebuserpassword>');   

The previous should normally output something like:

Resource id #n 

where n=1 or 2 or

Note: If the database is corrupted and you'd like to know how to import indexes ms sql, you may try this tool: http://www.recoverytoolbox.com/...


Thanks to Kicking_and_alive_at_last for this tip on the forum.

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.


This document, titled « The MySQL adapter "mysql" is not available », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).