<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Connect different database from Magento</title>
	<atom:link href="http://blog.decryptweb.com/connect-database-magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.decryptweb.com/connect-database-magento/</link>
	<description>Open Source Web Solutions</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:01:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: DWRoot</title>
		<link>http://blog.decryptweb.com/connect-database-magento/comment-page-1/#comment-700</link>
		<dc:creator>DWRoot</dc:creator>
		<pubDate>Tue, 09 Aug 2011 04:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=14#comment-700</guid>
		<description>@Ali - yes you can use it, but than you will need to modify the session model, and put your custom code at many places, which will quite troublesome</description>
		<content:encoded><![CDATA[<p>@Ali &#8211; yes you can use it, but than you will need to modify the session model, and put your custom code at many places, which will quite troublesome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://blog.decryptweb.com/connect-database-magento/comment-page-1/#comment-697</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Mon, 08 Aug 2011 23:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=14#comment-697</guid>
		<description>Can we configure magento to use separate database connection for session management.</description>
		<content:encoded><![CDATA[<p>Can we configure magento to use separate database connection for session management.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Three Tree</title>
		<link>http://blog.decryptweb.com/connect-database-magento/comment-page-1/#comment-256</link>
		<dc:creator>The Three Tree</dc:creator>
		<pubDate>Wed, 20 Apr 2011 04:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=14#comment-256</guid>
		<description>We have developed a new Magento Extenstion now available on Magento connection for external DB connection.

http://www.magentocommerce.com/magento-connect/the3tree/extension/6428/ttt_edb</description>
		<content:encoded><![CDATA[<p>We have developed a new Magento Extenstion now available on Magento connection for external DB connection.</p>
<p><a href="http://www.magentocommerce.com/magento-connect/the3tree/extension/6428/ttt_edb" rel="nofollow">http://www.magentocommerce.com/magento-connect/the3tree/extension/6428/ttt_edb</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Floppy Max</title>
		<link>http://blog.decryptweb.com/connect-database-magento/comment-page-1/#comment-238</link>
		<dc:creator>Floppy Max</dc:creator>
		<pubDate>Sat, 26 Feb 2011 14:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=14#comment-238</guid>
		<description>Hello everyone,

I&#039;m working on Magento Enterprise v1.9.0.0.
I need to connect to the database and run SQL directly to query tables.

Here is what I&#039;ve used to do that.

    $query = &quot;...SQL QUERY...&quot;;
    $databaseConnection = Mage::getSingleton(&#039;core/resource&#039;)-&gt;getConnection(&#039;core_read&#039;);
    $result = $databaseConnection-&gt;fetchAll($query);

I have Magento Community v1.4.1.1 and Magento Enterprise v1.9.0.0 installed on my local computer.
So in order to test, I&#039;ve run the above code on my local machine, and all works fine.

But it doesn&#039;t work on live server.
Magento Enterprise v1.9.0.0 is installed on the live server and online store is running.
All works fine on live store and nothing special happens.

But I&#039;ve uploaded this code to the server, it doesn&#039;t work.
And further, I can&#039;t get any PHP/MySQL error message.

Here is more detailed codes which I used to track run time.

    // Debug Output
    $this-&gt;OutputDebugLogo(&quot;&quot;);
    $this-&gt;OutputDebugLogo(&quot;Query : #&quot;, $query);

    $databaseConnection = Mage::getSingleton(&#039;core/resource&#039;)-&gt;getConnection(&#039;core_read&#039;);
    $result = $databaseConnection-&gt;fetchAll($query);

    // Debug Output
    $this-&gt;OutputDebugLogo(&quot;Result : #&quot;, $result);
    $this-&gt;OutputDebugLogo(&quot;&quot;);

I can be sure there is no error on SQL statement.
And the function OutputDebugLogo() is made by myself to output debug message with variables.

Here is what I&#039;ve got after running this script on my local machine.

    Query :
    &#039; SELECT ... FROM ... WHERE ... &#039;

    Result:
    array ( 0 =&gt; array ( &#039;items&#039; =&gt; &#039;a:2:{s:3:&quot;MEN&quot;;a:11:{s:9:... )

And here you can see what I&#039;ve got on the live server.

    Query :
    &#039; SELECT ... FROM ... WHERE ... &#039;

As you can see, there is no PHP/MySQL error message.
And we can say the script wass stopped running at database code block.

I can&#039;t make any progress to find the main cause.
Why did it happen?
Can anyone know it?

I&#039;m really looking forward to getting help from everyone.

Best Regards,
Floppy</description>
		<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>I&#8217;m working on Magento Enterprise v1.9.0.0.<br />
I need to connect to the database and run SQL directly to query tables.</p>
<p>Here is what I&#8217;ve used to do that.</p>
<p>    $query = &#8220;&#8230;SQL QUERY&#8230;&#8221;;<br />
    $databaseConnection = Mage::getSingleton(&#8216;core/resource&#8217;)-&gt;getConnection(&#8216;core_read&#8217;);<br />
    $result = $databaseConnection-&gt;fetchAll($query);</p>
<p>I have Magento Community v1.4.1.1 and Magento Enterprise v1.9.0.0 installed on my local computer.<br />
So in order to test, I&#8217;ve run the above code on my local machine, and all works fine.</p>
<p>But it doesn&#8217;t work on live server.<br />
Magento Enterprise v1.9.0.0 is installed on the live server and online store is running.<br />
All works fine on live store and nothing special happens.</p>
<p>But I&#8217;ve uploaded this code to the server, it doesn&#8217;t work.<br />
And further, I can&#8217;t get any PHP/MySQL error message.</p>
<p>Here is more detailed codes which I used to track run time.</p>
<p>    // Debug Output<br />
    $this-&gt;OutputDebugLogo(&#8220;&#8221;);<br />
    $this-&gt;OutputDebugLogo(&#8220;Query : #&#8221;, $query);</p>
<p>    $databaseConnection = Mage::getSingleton(&#8216;core/resource&#8217;)-&gt;getConnection(&#8216;core_read&#8217;);<br />
    $result = $databaseConnection-&gt;fetchAll($query);</p>
<p>    // Debug Output<br />
    $this-&gt;OutputDebugLogo(&#8220;Result : #&#8221;, $result);<br />
    $this-&gt;OutputDebugLogo(&#8220;&#8221;);</p>
<p>I can be sure there is no error on SQL statement.<br />
And the function OutputDebugLogo() is made by myself to output debug message with variables.</p>
<p>Here is what I&#8217;ve got after running this script on my local machine.</p>
<p>    Query :<br />
    &#8216; SELECT &#8230; FROM &#8230; WHERE &#8230; &#8216;</p>
<p>    Result:<br />
    array ( 0 =&gt; array ( &#8216;items&#8217; =&gt; &#8216;a:2:{s:3:&#8221;MEN&#8221;;a:11:{s:9:&#8230; )</p>
<p>And here you can see what I&#8217;ve got on the live server.</p>
<p>    Query :<br />
    &#8216; SELECT &#8230; FROM &#8230; WHERE &#8230; &#8216;</p>
<p>As you can see, there is no PHP/MySQL error message.<br />
And we can say the script wass stopped running at database code block.</p>
<p>I can&#8217;t make any progress to find the main cause.<br />
Why did it happen?<br />
Can anyone know it?</p>
<p>I&#8217;m really looking forward to getting help from everyone.</p>
<p>Best Regards,<br />
Floppy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Awara</title>
		<link>http://blog.decryptweb.com/connect-database-magento/comment-page-1/#comment-218</link>
		<dc:creator>Awara</dc:creator>
		<pubDate>Fri, 15 Oct 2010 07:18:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=14#comment-218</guid>
		<description>Very nice post, I solved my database query problem. Please keep it up. I wana see more posts regarding Magento, Share your knowledge :P</description>
		<content:encoded><![CDATA[<p>Very nice post, I solved my database query problem. Please keep it up. I wana see more posts regarding Magento, Share your knowledge <img src='http://blog.decryptweb.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

