Add Readme for installing old (not mysqli or mysql_pdo) mysql drivers.

This commit is contained in:
Christoph 2018-04-12 12:49:56 +00:00
parent 014bb6d877
commit 0d6e57578f

38
DOC/README.php7_old_mysql Normal file
View File

@ -0,0 +1,38 @@
## - How to put lagacy MySQL functions back into PHP 7
## -
## - see: https://ckon.wordpress.com/2015/08/06/put-mysql-functions-back-into-php-7/
## -
## - So you can use legacy code that uses the mysql_* functions.
# - Note:
# -
# - MySQL native driver must be enabled at php 7.1 installation. This will
# - be done implicitly, when required by other extensions
# - --with-mysqli=mysqlnd
# - or
# - --with-pdo-mysql=mysqlnd
# -
# - Otherwise you have to enabled it with option:
# - --enable-mysqlnd
# -
# - Install
# -
mkdir /usr/local/src/php_mysql
cd /usr/local/src/php_mysql
git clone https://github.com/php/pecl-database-mysql mysql --recursive
cd mysql
phpize
./configure
make
make install
# - Then edit your php.ini
# - Somewhere either in the “Extensions” section or “MySQL” section, simply add this line:
# -
# - extension = /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mysql.so