<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Database connection issue]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4212&amp;type=atom" />
	<updated>2017-07-27T09:49:24Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4212</id>
		<entry>
			<title type="html"><![CDATA[Re: Database connection issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28281#p28281" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-07-27T09:49:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28281#p28281</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Database connection issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28257#p28257" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-07-25T11:57:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28257#p28257</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Database connection issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28252#p28252" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Pkemoi Dickson]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41542</uri>
			</author>
			<updated>2017-07-25T10:07:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28252#p28252</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Database connection issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17084#p17084" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[chrisf]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18225</uri>
			</author>
			<updated>2013-07-20T18:17:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17084#p17084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Database connection issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17083#p17083" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[chrisf]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18225</uri>
			</author>
			<updated>2013-07-20T17:33:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17083#p17083</id>
		</entry>
</feed>
