<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Adapter pattern &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/adapter-pattern/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>Zend Framework: Connect MySQL</title>
		<link>/2010/07/20/zend-framework-connect-mysql/</link>
		<comments>/2010/07/20/zend-framework-connect-mysql/#respond</comments>
		<pubDate>Tue, 20 Jul 2010 11:12:45 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[Adapter pattern]]></category>
		<category><![CDATA[Applied mathematics]]></category>
		<category><![CDATA[Bootstrapping]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Americas Inc.]]></category>
		<category><![CDATA[Resampling]]></category>
		<category><![CDATA[Software design patterns]]></category>
		<category><![CDATA[Statistical inference]]></category>
		<category><![CDATA[Statistics]]></category>

		<guid isPermaLink="false">/?p=1832</guid>
		<description><![CDATA[There are so many tutorials about that, but let me add it one more time. You&#8217;ve to use the PDO_MYSQL adapter: // where params include adapter, host // username, password and dbname $db = new Zend_Db_Adapter_Pdo_Mysql($params); and set the default adapter Zend_Db_Table::setDefaultAdapter($db); That can be done in the bootstrap or into a front controller plugin!<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/06/19/zend-framework-quick-tutorial-part-3-front-controller-plugins/" rel="bookmark" title="Zend Framework &#8211; quick tutorial (part 3) &#8211; front controller plugins">Zend Framework &#8211; quick tutorial (part 3) &#8211; front controller plugins </a></li>
<li><a href="/2010/07/21/setting-up-global-cache-in-zend-framework/" rel="bookmark" title="Setting Up Global Cache in Zend Framework">Setting Up Global Cache in Zend Framework </a></li>
<li><a href="/2009/12/09/connect-mysql-from-zend-server-ce-trough-unix-socket/" rel="bookmark" title="Connect MySQL from Zend Server CE trough unix socket!">Connect MySQL from Zend Server CE trough unix socket! </a></li>
<li><a href="/2010/04/26/mysql-expressions-in-zend-framework/" rel="bookmark" title="MySQL Expressions in Zend Framework">MySQL Expressions in Zend Framework </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>There are so many tutorials about that, but let me add it one more time. You&#8217;ve to use the PDO_MYSQL adapter:</p>
<pre lang="php">
// where params include adapter, host
// username, password and dbname
$db = new Zend_Db_Adapter_Pdo_Mysql($params);
</pre>
<p>and set the default adapter</p>
<pre lang="php">
Zend_Db_Table::setDefaultAdapter($db);
</pre>
<p>That can be done in the bootstrap or into a front controller plugin!</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/06/19/zend-framework-quick-tutorial-part-3-front-controller-plugins/" rel="bookmark" title="Zend Framework &#8211; quick tutorial (part 3) &#8211; front controller plugins">Zend Framework &#8211; quick tutorial (part 3) &#8211; front controller plugins </a></li>
<li><a href="/2010/07/21/setting-up-global-cache-in-zend-framework/" rel="bookmark" title="Setting Up Global Cache in Zend Framework">Setting Up Global Cache in Zend Framework </a></li>
<li><a href="/2009/12/09/connect-mysql-from-zend-server-ce-trough-unix-socket/" rel="bookmark" title="Connect MySQL from Zend Server CE trough unix socket!">Connect MySQL from Zend Server CE trough unix socket! </a></li>
<li><a href="/2010/04/26/mysql-expressions-in-zend-framework/" rel="bookmark" title="MySQL Expressions in Zend Framework">MySQL Expressions in Zend Framework </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/07/20/zend-framework-connect-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
