OVH Community, your new community space.

MySQL extension


ServerSolutions
08-01-2017, 08:21
Try to use pdo connection instead of mysql. An example of pdo connection string:

Code:

Also, You can try to install mysql with php7.

Code:
mkdir /ext
cd ext/
git clone https://github.com/php/pecl-database-mysql     mysql   --recursive
or
http://pecl.php.net/package/mysql
(same code, same timestamp, now static and likely will never be updated again)

Then compile the code on your server:
Code:
phpize
./configure
make
make install
Then edit your php.ini
Somewhere either in the “Extensions” section or “MySQL” section, simply add this line:
Code:
extension = /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mysql.so

CosmicEternity
06-01-2017, 14:11
Is there possibly a way of manually installing the deprecated MySQL extension from PHP onto OVH pro2014 server? I am currently using a forum package that does not support MySQLi and do not know how to
make the necessary changes to make it work with PHP 7, so it would be easier to install the package myself.

Thanks