Database Error: The PHP `ext/mysql` extension is removed in PHP 7, cannot use the `mysql` driver. Also, this system does not support MySQLi or PDO MySQL. Cannot instantiate database driver.
Posted by: carsten888 (---.static.trined.nl)
Date: August 02, 2017 08:06AM

I've manually installed another PHP version to Wamp. Now I get this message:

Database Error: The PHP `ext/mysql` extension is removed in PHP 7, cannot use the `mysql` driver. Also, this system does not support MySQLi or PDO MySQL. Cannot instantiate database driver.

other php versions work fine.

What do I need to do to get this working again?

Wamp 3.0.4
windows 10
php 7.1.5



Edited 1 time(s). Last edit at 08/02/2017 08:08AM by carsten888.

Options: ReplyQuote
Re: Database Error: The PHP `ext/mysql` extension is removed in PHP 7, cannot use the `mysql` driver. Also, this system does not support MySQLi or PDO MySQL. Cannot instantiate database driver.
Posted by: Otomatic (Moderator)
Date: August 02, 2017 09:33AM

Hi,

It is clear!
The mysql extension no longer exists in PHP 7. The mysqli extension must be used.

Update to version 3.0.9.

Use mysqli driver for yours databases.

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.0.9 32 bit - Apache 2.4.27 - PHP 7.1.8/7.0.22/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.7
Wampserver 3.0.9 64 bit - Apache 2.4.27 - PHP 7.1.8/7.0.22/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.7
PhPMyAdmin 4.7.3 - MysqlDumper 1.24.5

Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Database Error: The PHP `ext/mysql` extension is removed in PHP 7, cannot use the `mysql` driver. Also, this system does not support MySQLi or PDO MySQL. Cannot instantiate database driver.
Posted by: RiggsFolly (Moderator)
Date: August 02, 2017 01:04PM

Also, you dont have to manually install PHP version in WAMPServer 3.

See the list of ADDONS In the backup repository for ADDONS for PHP - MYSQL - APACHE - MariaDB - phpMyAdmin - Adminer - XDEBUG etc

---------------------------------------------------------------------------------------------
(Windows 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote


Sorry, only registered users may post in this forum.