<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Database connection issue]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=4212</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4212&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Database connection issue.]]></description>
		<lastBuildDate>Thu, 27 Jul 2017 09:49:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Database connection issue]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28281#p28281</link>
			<description><![CDATA[<p>@joe / @itronics: Thanks for the <a href="https://github.com/FrontAccountingERP/FA/commit/7f32bbd73c782449684cf6c6bf987e5bfbae9eb7">commit</a> that now allows non standard db ports in FA 2.4.x.</p><p>Gracefully degrades to accommodate old <strong>config_db.php</strong> files that do not have the port element in each connection instance.</p><p>For later versions of MySQL (v5.7+) turn off strict mode with:<br /></p><div class="codebox"><pre><code>SET @@global.sql_mode= &#039;&#039;;</code></pre></div><p>This will accomodate zero values in dates.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 27 Jul 2017 09:49:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28281#p28281</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database connection issue]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28257#p28257</link>
			<description><![CDATA[<p>Maybe it is time the array <strong>$db_connections</strong> in <strong>config_db.php</strong> now has a new element <strong>dbport</strong> implemented in create/edit/list new company and in the connect files.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 25 Jul 2017 11:57:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28257#p28257</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database connection issue]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28252#p28252</link>
			<description><![CDATA[<p>You need to modify the string according to mysqli connections (for FA 2.4.1) string format, which is</p><p>mysqli_connect(host,username,password,dbname,port,socket);</p><p>So go to the&nbsp; &quot;connect_db_mysqli.inc&quot; file under<br />..\public_html\frontaccounting\includes\db\connect_db_mysqli.inc</p><p>Line 203 </p><p>$db = mysqli_connect($connection[&quot;host&quot;], $connection[&quot;dbuser&quot;], $connection[&quot;dbpassword&quot;]);</p><p>change to </p><p>$db = mysqli_connect($connection[&quot;host&quot;], $connection[&quot;dbuser&quot;], $connection[&quot;dbpassword&quot;],NULL,3307);<br />Where 3307 is your mysql port.</p>]]></description>
			<author><![CDATA[null@example.com (Pkemoi Dickson)]]></author>
			<pubDate>Tue, 25 Jul 2017 10:07:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28252#p28252</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database connection issue]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=17084#p17084</link>
			<description><![CDATA[<p>Having rummaged around in the code, I found that the problem stemmed from the php function mysql_connect.<br />The solution was here: http://stackoverflow.com/questions/6366192/specifying-protocol-in-mysql-connect-php</p><p>If you specify your server and port as localhost:12345 the php will use a socket.<br />The fudgearound is to specify it as 127.0.0.1:12345 then php will use TCP/IP.</p><p>Excellent. FA&#039;s now up and running on my new server!</p>]]></description>
			<author><![CDATA[null@example.com (chrisf)]]></author>
			<pubDate>Sat, 20 Jul 2013 18:17:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=17084#p17084</guid>
		</item>
		<item>
			<title><![CDATA[Database connection issue]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=17083#p17083</link>
			<description><![CDATA[<p>I&#039;m a new user so firstly I&#039;d like to say what an excellent piece of software FrontAccounting is - Thanks to all contributors!</p><p>I&#039;ve just moved to a new server and am struggling to get a connection to the mysql database. I&#039;ve checked that the user and password are correct.</p><p>I can access the database from the command line but have to specify port and protocol so I use:<br />mysql -P 12345 -u user_name -p --protocol=tcp (where 12345 is the port number)</p><p>Is there any place I can specify the port number and protocol in the FA setup?</p>]]></description>
			<author><![CDATA[null@example.com (chrisf)]]></author>
			<pubDate>Sat, 20 Jul 2013 17:33:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=17083#p17083</guid>
		</item>
	</channel>
</rss>
