<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>&lt;!--- CFChris ---&gt; - MySQL</title>
			<link>http://www.cfchris.com/cfchris/index.cfm</link>
			<description>The blog of Chris Phillips, a ColdFusion developer with a passion for improvement.</description>
			<language>en-us</language>
			<pubDate>Sun, 05 Sep 2010 07:48:19 -0700</pubDate>
			<lastBuildDate>Tue, 01 May 2007 00:36:00 -0700</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>me@cfchris.com</managingEditor>
			<webMaster>me@cfchris.com</webMaster>
			
			
			
			
			
			<item>
				<title>MySQL 5 ColdFusion 7 Datasources</title>
				<link>http://www.cfchris.com/cfchris/index.cfm/2007/5/1/MySQL-5-ColdFusion-7-Datasources</link>
				<description>
				
				In moving my laptop to linux, I&apos;ve been looking into MySQL. Getting it set up was easy with the package manager. I just set it to get MySQL 5 and phpMyAdmin. I already had Apache and PHP.

After installing, I messed around in phpMyAdmin and create a database and test table. The next step was to create a CFMX 7 datasource. I looked in the drop-down of buit-in drivers, and the option for MySQL said (3.x). So, I started googling and found &lt;a href=&quot;http://www.adobe.com/go/6ef0253&quot; target=&quot;_blank&quot;&gt;this technote&lt;/a&gt; on adobe.com. I tried for hours with multiple versions of the MySQL Connector/J trying to get my a datasource connected. It just wouldn&apos;t work.

Well, tonight at the Scorpio Feature Tour event in PDX (exciting stuff, I&apos;ll try to blog soon), Barney Boisvert gave me the answer.

In the configuration file for MySQL, /etc/my.cnf, there is a flag, &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/privileges-options.html&quot; target=&quot;_blank&quot;&gt;skip-networking&lt;/a&gt;. All I had to do was comment out that line and restart MySQL.

So, If you&apos;re getting &quot;Cannot connect to MySQL server on host:3306&quot; while trying to set up a MySQL 5 datasource in CFMX 7 under linux, put a # in front of &quot;skip-networking&quot; in your /etc/my.cnf file and restart MySQL with something like &quot;/etc/init.d/mysqld-max restart&quot;.

Oh, by the way, you can actually use the 3.x driver as long as you have the &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/privileges-options.html&quot; target=&quot;_blank&quot;&gt;old_passwords&lt;/a&gt; option set.
				
				</description>
						
				
				<category>MySQL</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Tue, 01 May 2007 00:36:00 -0700</pubDate>
				<guid>http://www.cfchris.com/cfchris/index.cfm/2007/5/1/MySQL-5-ColdFusion-7-Datasources</guid>
				
			</item>
			
		 	
			</channel></rss>