<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — SQL connection error]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6996</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6996&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in SQL connection error.]]></description>
		<lastBuildDate>Thu, 28 Sep 2017 13:06:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: SQL connection error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28763#p28763</link>
			<description><![CDATA[<p>Compare and list the versions of Apache, PHP, MySQL, FA version for both the WAMP and the working server.</p><p>If your WAMP is having PHP7 then it will not work out of the box. You need PHP 5.3 to 5.5. Only MySQLi and not MySQL driver support is available for PHP 7 onwards but FA 2.3.x needs MySQL driver support</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 28 Sep 2017 13:06:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28763#p28763</guid>
		</item>
		<item>
			<title><![CDATA[SQL connection error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28755#p28755</link>
			<description><![CDATA[<p>I copied the database and the source code from my working server to my localhost (xampp) but unexpectedly, it still give me the following error:</p><p>mysql_connect(): MySQL server has gone away in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 28<br />mysql_connect(): Error while reading greeting packet. PID=7496 in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 28<br />mysql_select_db() expects parameter 2 to be resource, boolean given in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 29<br />mysql_query() expects parameter 2 to be resource, boolean given in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 53<br />mysql_errno() expects parameter 1 to be resource, boolean given in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 147<br />mysql_num_rows() expects parameter 1 to be resource, null given in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 107</p><br /><br /><p>But when i tried to deploy to my local wamp server, it work alright but it will show me :<br />mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in file: C:\wamp64\www\fa\includes\db\connect_db.inc at line 27</p><p>and when change mysql to mysqli, it will show this:<br />mysql_connect(): MySQL server has gone away in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 28<br />mysql_connect(): Error while reading greeting packet. PID=7496 in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 28<br />mysql_select_db() expects parameter 2 to be resource, boolean given in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 29<br />mysql_query() expects parameter 2 to be resource, boolean given in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 53<br />mysql_errno() expects parameter 1 to be resource, boolean given in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 147<br />mysql_num_rows() expects parameter 1 to be resource, null given in file: C:\xampp\htdocs\fa\includes\db\connect_db.inc at line 107</p><br /><p>Please help</p>]]></description>
			<author><![CDATA[null@example.com (Yan Shuang)]]></author>
			<pubDate>Thu, 28 Sep 2017 04:21:39 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28755#p28755</guid>
		</item>
	</channel>
</rss>
