<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — SQL connection error]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6996&amp;type=atom" />
	<updated>2017-09-28T13:06:41Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6996</id>
		<entry>
			<title type="html"><![CDATA[Re: SQL connection error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28763#p28763" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-09-28T13:06:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28763#p28763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SQL connection error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28755#p28755" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Yan Shuang]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40844</uri>
			</author>
			<updated>2017-09-28T04:21:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28755#p28755</id>
		</entry>
</feed>
