Cannot get the mysql extension module to load for php 7.0? -


i'm installing template on php 7.0 / mysql 5.5 needs mysql extension installed.

this on ubuntu 14.04, mysql version 5.5, php version 7.0.7-4+deb.sury.org~trusty+1

currently, despite having installed mysql-server , mysql-client , php7.0-mysql -- pre-requisite installation code still returning false:

if(!extension_loaded('mysql')){$error = true; echo " mysql php extension missing!";}else{echo " mysql php extension loaded!";}

mysqli installed successfully, reason php not seeing mysql extension , therefore cannot proceed installation.

the same thing true on phpinfo() check -- no mysql module found, instead there pdo_mysql, mysqlnd, , mysqi.. when check active php ini file (in fpm folder) don't see obvious in there either.

what need install or enable mysql extension showing up??

the mysql extension deprecated. see http://php.net/manual/en/mysql.php

your options are:

1) switch mysqli or pdo. ideally pdo, since supports prepared queries , becoming extension of choice php community.

2) if have lot of legacy code, you're better off remaining php 5.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -