<?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>leinadium &#187; mysql</title>
	<atom:link href="http://www.leinadium.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leinadium.com</link>
	<description>Techhead. Codewarrior. Legalnerd.</description>
	<lastBuildDate>Fri, 02 Sep 2011 20:09:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>odbc 3.51 Invalid string or buffer length error</title>
		<link>http://www.leinadium.com/code/odbc-351-invalid-string-or-buffer-length-error/</link>
		<comments>http://www.leinadium.com/code/odbc-351-invalid-string-or-buffer-length-error/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 11:01:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://217.11.59.22/leinadium/?p=32</guid>
		<description><![CDATA[I&#8217;m using ODBC 3.51 to connect an ASP scripted site to MySql. I got very strange errors when calling the update function: &#8220;Invalid string or buffer length error&#8221;. It turns out that the following line is mandatory for the ODBC driver: The problem is the CursorLocation, the solution is that sentence rs.CursorLocation = 3 or [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using ODBC 3.51 to connect an ASP scripted site to MySql. I got very strange errors when calling the update function: &#8220;Invalid string or buffer length error&#8221;.<br />
It turns out that the following line is mandatory for the ODBC driver:</p>
<p>The problem is the CursorLocation, the solution is that sentence</p>
<p>rs.CursorLocation = 3 or rs.CursorLocation = adUseClient</p>
<p>Just in case someone is pulling their hair out over this also&#8230;</p>
<p>Will version 3.51 ever update? I&#8217;ve seen this version for years and 5.1 has been in alpha for the same amount of time&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leinadium.com/code/odbc-351-invalid-string-or-buffer-length-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySql Migration Toolkit MSSQL latin1 to MySql utf8</title>
		<link>http://www.leinadium.com/code/mysql-migration-toolkit-mssql-latin1-to-mysql-utf8/</link>
		<comments>http://www.leinadium.com/code/mysql-migration-toolkit-mssql-latin1-to-mysql-utf8/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 10:49:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://217.11.59.22/leinadium/?p=15</guid>
		<description><![CDATA[We&#8217;ve all been there. The dreaded Umlaute and special characters have been turned into minced words by some character encoding incompatibility. When converting a database from MSSQL(2000) to MYSQL (v5) I must have spent days trying to figure this problem out. Some people have come up with very creative albeit complicated solutions: http://www.oreillynet.com/onlamp/blog/2006/01/turning_mysql_data_in_latin1_t.html Instead, I [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve all been there.<br />
The dreaded Umlaute and special characters have been turned into minced words by some character encoding incompatibility.</p>
<p>When converting a database from MSSQL(2000) to MYSQL (v5) I must have spent days trying to figure this problem out. Some people have come up with very creative albeit complicated solutions:<br />
<a href="http://www.oreillynet.com/onlamp/blog/2006/01/turning_mysql_data_in_latin1_t.html">http://www.oreillynet.com/onlamp/blog/2006/01/turning_mysql_data_in_latin1_t.html</a></p>
<p>Instead, I found this:<br />
<a href="http://forums.mysql.com/read.php?104,124017,124790#msg-124790">http://forums.mysql.com/read.php?104,124017,124790#msg-124790</a><br />
Thank you Miguel.<br />
The solution is simple:</p>
<p>In Migration Toolkit&#8217;s first step, where you select the source and target db, in Advanced &gt;&gt; option, use the following jdbc connection string for MSSQL:<br />
jdbc:jtds:sqlserver://server:1433/database;user=user;password=password;useUnicode=true;domain=</p>
<p>And this one for MySQL:<br />
jdbc:mysql://server:3306/?user=user&amp;password=password&amp;useServerPrepStmts=false&amp;useUnicode=true</p>
<p>Forget the utf-8 character encoding that you see elsewhere. useUnicode rules. And so does Miguel.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leinadium.com/code/mysql-migration-toolkit-mssql-latin1-to-mysql-utf8/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>sporadic mysql errors from asp</title>
		<link>http://www.leinadium.com/code/sporadic-mysql-errors-from-asp/</link>
		<comments>http://www.leinadium.com/code/sporadic-mysql-errors-from-asp/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 10:45:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[odbc]]></category>

		<guid isPermaLink="false">http://217.11.59.22/leinadium/?p=7</guid>
		<description><![CDATA[still, the connection.open errors have crept up each once in a while. Just implemented the &#8220;solution&#8221; to kill sleeping mysql processes that are older than x seconds. Here&#8217;s the source: http://www.primaryobjects.com/CMS/Article69.aspx Rewrote the little function in vbscript and just put it online. Let&#8217;s see what happens.]]></description>
			<content:encoded><![CDATA[<p>still, the connection.open errors have crept up each once in a while.<br />
Just implemented the &#8220;solution&#8221; to kill sleeping mysql processes that are older than x seconds.<br />
Here&#8217;s the source: http://www.primaryobjects.com/CMS/Article69.aspx<br />
Rewrote the little function in vbscript and just put it online.<br />
Let&#8217;s see what happens.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leinadium.com/code/sporadic-mysql-errors-from-asp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql iis asp and the crazies</title>
		<link>http://www.leinadium.com/code/mysql-iis-asp-and-the-crazies/</link>
		<comments>http://www.leinadium.com/code/mysql-iis-asp-and-the-crazies/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 10:42:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[settings]]></category>

		<guid isPermaLink="false">http://217.11.59.22/leinadium/?p=3</guid>
		<description><![CDATA[It&#8217;s been a long time coming. Here are the error messages of the last two months on Windows IIS6 using ASP 3.0: The ominous asp error -2147467259: [MySQL][ODBC 3.51 Driver]Can&#8217;t create TCP/IP socket (10038) [MySQL][ODBC 5.1 Driver]Can&#8217;t create TCP/IP socket (10038) [MySQL][ODBC 3.51 Driver][mysqld-5.0.44-log]MySQL server has gone away Searching for this error on google and [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a long time coming.<br />
Here are the error messages of the last two months on Windows IIS6 using ASP 3.0:<br />
The ominous asp error -2147467259:<br />
[<strong style="color: black; background-color: #ffff66;">MySQL</strong>][ODBC 3.51 Driver]<strong style="color: black; background-color: #a0ffff;">Can&#8217;t</strong> <strong style="color: black; background-color: #99ff99;">create</strong> <strong style="color: black; background-color: #ff9999;">TCP/IP</strong> <strong style="color: black; background-color: #ff66ff;">socket</strong> (<strong style="color: white; background-color: #880000;">10038</strong>)<br />
[<strong style="color: black; background-color: #ffff66;">MySQL</strong>][ODBC 5.1 Driver]<strong style="color: black; background-color: #a0ffff;">Can&#8217;t</strong> <strong style="color: black; background-color: #99ff99;">create</strong> <strong style="color: black; background-color: #ff9999;">TCP/IP</strong> <strong style="color: black; background-color: #ff66ff;">socket</strong> (<strong style="color: white; background-color: #880000;">10038</strong>)<br />
[<strong style="color: black; background-color: #ffff66;">MySQL</strong>][ODBC 3.51 Driver][mysqld-5.0.44-log]<strong style="color: black; background-color: #ffff66;">MySQL</strong> server has gone away</p>
<p>Searching for this error on google and <strong style="color: black; background-color: #ffff66;">mysql</strong>.com would yield results that ranged from other helpless users asking the same question, to <strong style="color: black; background-color: #ffff66;">mysql</strong> admins posting that this is not actually a bug and there&#8217;s nothing they can do.</p>
<p>This error would occur sporadically, usually under heavy load and would return relentlessly. Nothing would help!<br />
We tried all the suggestions from various sources (too many to list now), including debugging iis, windows, cleaning up after all connections to the database, mdac updates, <strong style="color: black; background-color: #ff9999;">tcp/ip</strong> ephemeral port range of windows increase, tweaking the registry, etc&#8230;</p>
<p>Feeling there&#8217;s nothing we could do on the web server platform, we moved on to the db servers (<strong style="color: black; background-color: #ffff66;">mysql</strong> servers 5.x running on debian).<br />
Here we got errors like the following:</p>
<p>Aborted connection 887 to db: &#8216;abc&#8217; user:<br />
&#8216;abc&#8217; host: &#8217;123.456.789.123&#8242; (Got an error reading communication<br />
packets)</p>
<p>We tried all the fitting suggestion on<a href="http://dev.mysql.com/doc/refman/5.1/en/%20communication-errors.html"> http://dev.<strong style="color: black; background-color: #ffff66;">mysql</strong>.com/doc/refman/5.1/en/<br />
communication-errors.html</a> without a proper result.<br />
The error returned again and again.<br />
After tweaking several <strong style="color: black; background-color: #ffff66;">mysql</strong> config variables we finally came upon a little noticed post on:<br />
<a href="http://themattreid.com/wordpress/?p=15">http://themattreid.com/wordpress/?p=15</a></p>
<p>Thank you matt reid!<br />
Increasing the max_allowed_packet from 8MB to 64 MB did the trick.<br />
Time to celebrate.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leinadium.com/code/mysql-iis-asp-and-the-crazies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

