<?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: How do i connect a windows C# application to a remote Mysql database?</title>
	<atom:link href="http://www.codebrothers.org/how-do-i-connect-a-windows-c-application-to-a-remote-mysql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codebrothers.org/how-do-i-connect-a-windows-c-application-to-a-remote-mysql-database/</link>
	<description></description>
	<lastBuildDate>Mon, 02 Jan 2012 00:02:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: wallmeister</title>
		<link>http://www.codebrothers.org/how-do-i-connect-a-windows-c-application-to-a-remote-mysql-database/comment-page-1/#comment-756</link>
		<dc:creator>wallmeister</dc:creator>
		<pubDate>Mon, 18 Jan 2010 00:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.codebrothers.org/how-do-i-connect-a-windows-c-application-to-a-remote-mysql-database/#comment-756</guid>
		<description>It&#039;s the same for a remote database as local.  When you set up the data source, just specify the remote server.</description>
		<content:encoded><![CDATA[<p>It&#8217;s the same for a remote database as local.  When you set up the data source, just specify the remote server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rott</title>
		<link>http://www.codebrothers.org/how-do-i-connect-a-windows-c-application-to-a-remote-mysql-database/comment-page-1/#comment-757</link>
		<dc:creator>Rott</dc:creator>
		<pubDate>Mon, 18 Jan 2010 00:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.codebrothers.org/how-do-i-connect-a-windows-c-application-to-a-remote-mysql-database/#comment-757</guid>
		<description>You need to install the drivers to setup an ODBC connection which can be found here:

http://www.mysql.com/products/connector/

After you have the drivers installed, setup your DSN to connect to your remote mysql database.  You will likely need to add your ip to the Remote Database Access Hosts depending on how the Mysql server is configured.

You will then be able to use code as follows (replace the DSN name &quot;test&quot; with the name you provide when creating the DSN):

using System.Data.Odbc;
OdbcConnection DbConnection = new OdbcConnection(&quot;DSN=test&quot;);
DbConnection.Open();

OdbcCommand DbCommand = DbCommand.CommandText = &quot;SELECT * FROM TABLE&quot;;
OdbcDataReader DbReader = DbCommand.ExecuteReader();DbConnection.CreateCommand();</description>
		<content:encoded><![CDATA[<p>You need to install the drivers to setup an ODBC connection which can be found here:</p>
<p>http://www.mysql.com/products/connector/</p>
<p>After you have the drivers installed, setup your DSN to connect to your remote mysql database.  You will likely need to add your ip to the Remote Database Access Hosts depending on how the Mysql server is configured.</p>
<p>You will then be able to use code as follows (replace the DSN name &quot;test&quot; with the name you provide when creating the DSN):</p>
<p>using System.Data.Odbc;<br />
OdbcConnection DbConnection = new OdbcConnection(&quot;DSN=test&quot;);<br />
DbConnection.Open();</p>
<p>OdbcCommand DbCommand = DbCommand.CommandText = &quot;SELECT * FROM TABLE&quot;;<br />
OdbcDataReader DbReader = DbCommand.ExecuteReader();DbConnection.CreateCommand();</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
