<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=PHP_7_MySQL_functions</id>
	<title>PHP 7 MySQL functions - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=PHP_7_MySQL_functions"/>
	<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=PHP_7_MySQL_functions&amp;action=history"/>
	<updated>2026-04-08T07:34:24Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.webko.net.ua/index.php?title=PHP_7_MySQL_functions&amp;diff=367&amp;oldid=prev</id>
		<title>Sol: Новая страница: «Категория:WebКатегория:DB  Simply compile the mysql function as a php pecl extension and add one line to your php.ini  First get the mys…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=PHP_7_MySQL_functions&amp;diff=367&amp;oldid=prev"/>
		<updated>2016-01-26T07:59:38Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «&lt;a href=&quot;/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:Web&quot; title=&quot;Категория:Web&quot;&gt;Категория:Web&lt;/a&gt;&lt;a href=&quot;/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F:DB&quot; title=&quot;Категория:DB&quot;&gt;Категория:DB&lt;/a&gt;  Simply compile the mysql function as a php pecl extension and add one line to your php.ini  First get the mys…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Категория:Web]][[Категория:DB]]&lt;br /&gt;
&lt;br /&gt;
Simply compile the mysql function as a php pecl extension and add one line to your php.ini&lt;br /&gt;
&lt;br /&gt;
First get the mysql extension source which was removed in March:&lt;br /&gt;
https://github.com/php/php-src/tree/PRE_PHP7_EREG_MYSQL_REMOVALS/ext/mysql&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
 git clone https://github.com/php/pecl-database-mysql     mysql   --recursive&lt;br /&gt;
or&lt;br /&gt;
 svn co https://github.com/php/php-src/tags/PRE_PHP7_EREG_MYSQL_REMOVALS/ext/mysql mysql &lt;br /&gt;
or&lt;br /&gt;
 http://pecl.php.net/package/mysql&lt;br /&gt;
(same code, same timestamp, now static and likely will never be updated again)&lt;br /&gt;
Then compile the code on your server:&lt;br /&gt;
 phpize&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
The “make install” should announce where it is copying mysql.so – copy that path. It will likely be /usr/local/lib/php/extensions/no-debug-non-zts-20141001/ for PHP 7 but it could vary depending on your server setup.&lt;br /&gt;
&lt;br /&gt;
Then edit your php.ini&lt;br /&gt;
Somewhere either in the “Extensions” section or “MySQL” section, simply add this line:&lt;br /&gt;
 extension = /usr/local/lib/php/extensions/no-debug-non-zts-20141001/mysql.so&lt;br /&gt;
(change path if needed)&lt;br /&gt;
&lt;br /&gt;
Restart PHP and mysql_* functions should now be working again. Check your php error log if you have any problems (should check it periodically anyway). You will also see the MySQL section back in your phpinfo page.&lt;/div&gt;</summary>
		<author><name>Sol</name></author>
	</entry>
</feed>