Configure PHP and MySQL - Database connection error (1): The MySQL adapter 'mysql' is not available

1

How can I solve this error?

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

At the moment of loading the php.ini , it does not show me that it is loading the extension

extension=php_mysql.dll
extension=php_mysqli.dll

In the pnp.ini I have enabled the extensions, I have copied the DLLs in System32, I have done everything but it still does not load me, I can not get PHP to be configured with MySQL.

    
asked by Z-m Ozcar 15.02.2016 в 18:08
source

1 answer

1

Try to locate and set the following parameter in your php.ini (found in the dynamic extensions section):

extension = php_mysql.dll 

Before this change, I could do a simple php script without running MySQL, like this one: "

<? Php 
phpinfo ((); 
?> 

" to know if you have mysql installed

otherwise

Download link

add libmysql.dll to C:\windows\system32

restart apache

    
answered by 15.02.2016 в 19:41