Add Readme for installing old (not mysqli or mysql_pdo) mysql drivers.
This commit is contained in:
		
							
								
								
									
										38
									
								
								DOC/README.php7_old_mysql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								DOC/README.php7_old_mysql
									
									
									
									
									
										Normal 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 | ||||
		Reference in New Issue
	
	Block a user