<?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>Everyday Internet Stuff &#187; MySQL</title>
	<atom:link href="http://www.everydayinternetstuff.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.everydayinternetstuff.com</link>
	<description>Useful Tips And Tricks For Webmasters</description>
	<lastBuildDate>Tue, 27 Dec 2011 21:01:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>MySQL Error: Data truncated for column &#8216;&#8230;&#8217; at row 0</title>
		<link>http://www.everydayinternetstuff.com/2010/11/mysql-error-data-truncated-for-column-at-row-0/</link>
		<comments>http://www.everydayinternetstuff.com/2010/11/mysql-error-data-truncated-for-column-at-row-0/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 23:15:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[NULL]]></category>

		<guid isPermaLink="false">http://www.everydayinternetstuff.com/?p=37</guid>
		<description><![CDATA[If you&#8217;ve recently migrated from MySQL 4 to MySQL 5, queries that used to work might cause errors. The thing is that MySQL got much more struct about what data can go where. MySQL 4 used to cast NULL values to 0 INT, DOUBLE, FLOAT etc implicitly. MySQL 5 doesn&#8217;t do it so you ether [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve recently migrated from MySQL 4 to MySQL 5, queries that used to work might cause errors. The thing is that MySQL got much more struct about what data can go where. MySQL 4 used to cast NULL values to 0 INT, DOUBLE, FLOAT etc implicitly. MySQL 5 doesn&#8217;t do it so you ether need to make the column you are trying to assign to NULLable or make sure that it is never assigned NULL value.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everydayinternetstuff.com/2010/11/mysql-error-data-truncated-for-column-at-row-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup large MySQL database without SSH access</title>
		<link>http://www.everydayinternetstuff.com/2009/06/backup-large-mysql-database-without-ssh-access/</link>
		<comments>http://www.everydayinternetstuff.com/2009/06/backup-large-mysql-database-without-ssh-access/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 06:41:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQLDumper]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://www.everydayinternetstuff.com/?p=14</guid>
		<description><![CDATA[Moving your databases around is easy when they are small. When they get large it may become a problem especially if you are on a shared hosting&#8230; One of my website&#8217;s database grew to 5.5Gb in size. When it&#8217;s that big phpMyAdmin and standard control panel backup scripts just don&#8217;t work. Fortunately there is a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mysqldumper.de/"><img class="alignleft size-full wp-image-17" style="border: 0pt none; margin: 5px;" title="mysqldumper" src="http://www.everydayinternetstuff.com/wp-content/uploads/2009/06/mysqldumper.jpg" alt="mysqldumper" width="190" height="191" /></a>Moving your databases around is easy when they are small. When they get large it may become a problem especially if you are on a shared hosting&#8230;</p>
<p>One of my website&#8217;s database grew to 5.5Gb in size. When it&#8217;s that big phpMyAdmin and standard control panel backup scripts just don&#8217;t work. Fortunately there is a great solution: <a href="http://www.mysqldumper.de/">MysqlDumper.de</a> (<a href="http://translate.google.com/translate?u=http%3A//www.mysqldumper.de/&amp;hl=en&amp;langpair=auto|en&amp;tbb=1&amp;ie=UTF-8">english translation</a>). It&#8217;s PHP/AJAX application that backs up and restores your databases part by part. It&#8217;s really straightforward to use.</p>
<p>It took it 10+ hours to export by 5.5Gb database as 700Mb of GZipped SQL scripts but it got the job done 100%. Another nice touch about it is that it allows you to break down your backups into parts so you can start restoring the database at the new location the moment first part is ready. This can be quite useful since when you are restoring database this big reconstructing indexes can take a very long time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everydayinternetstuff.com/2009/06/backup-large-mysql-database-without-ssh-access/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mysql Connector Set Variable</title>
		<link>http://www.everydayinternetstuff.com/2009/06/mysql-connector-set-variable/</link>
		<comments>http://www.everydayinternetstuff.com/2009/06/mysql-connector-set-variable/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 01:07:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Connector]]></category>

		<guid isPermaLink="false">http://www.everydayinternetstuff.com/?p=8</guid>
		<description><![CDATA[MySql is a nice database engine, C# is nice programming language. However when you put them together you get something not nice at all. At least from a viewpoint of someone like me who is spoiled by nice, clean and seamless database integration Linq for SQL provides for MSSQL. Unfortunately when you put together MSSQL [...]]]></description>
			<content:encoded><![CDATA[<p>MySql is a nice database engine, C# is nice programming language. However when you put them together you get something not nice at all. At least from a viewpoint of someone like me who is spoiled by nice, clean and seamless database integration Linq for SQL provides for MSSQL. Unfortunately when you put together MSSQL and PHP you also get an ugly thing that doesn&#8217;t quite work.</p>
<p>One of the main problems with integrating MySQL with .NET languages is complete lack of documentation for MySQL Connector. CHM file that comes bundled with it is a joke &#8211; it merely lists class members and has a couple of stub articles. There are some sample pieces of code but after that you are on your own.</p>
<p>Just recently I ran into a problem of not being able to SQL variable from query.  If you write something like this:</p>
<blockquote><p>using (MySqlCommand cmd = this.mySql.CreateCommand())<br />
{<br />
cmd.CommandText = &#8220;SET @today=DATE(NOW())&#8221;;<br />
return cmd.ExecuteNonQuery();<br />
}</p></blockquote>
<p>you&#8217;ll get &#8220;Parameter &#8216;today&#8217; must be defined.&#8221; exception. I searched the internet and only thing I could find was this <a href="http://lists.mysql.com/dotnet/1322">message from mysql .net maillist</a> with no replies. Typical shortcoming of open-source of nobody wanting to do the dirty work of documenting their code properly is somewhat offset by the fact that you can poke around the code yourself. So I did.</p>
<p>Solution is there but it&#8217;s anything but obvoius &#8211; append <strong>Allow User Variables=true;</strong> to your MySQL connection string. This will cause MySql connector to skip checking parameters mentioned in the query for existence. There is a downside to this solution &#8211; you&#8217;ll not be able to easily catch bugs in your code caused by mistyped query parameter names.</p>
<p>Hopefully at some point MySql connector developers will realize that passings parameters into query and settings MySQL connection variables are two different pieces of functionality and each should have it&#8217;s own independent syntax.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everydayinternetstuff.com/2009/06/mysql-connector-set-variable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

