<?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>BLOGS@DiGiTSS &#187; MySQL</title>
	<atom:link href="http://blogs.digitss.com/category/database/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.digitss.com</link>
	<description>DiGiTSS Team&#039;s Programming experience with PHP, MySQL, Ajax, Javascript, jQuery, C# and Microsoft technologies</description>
	<lastBuildDate>Sat, 13 Aug 2011 06:26:51 +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>MySQL5 Problem while creating new user – SQL Error (1133): Can&#8217;t find any matching row in the user table</title>
		<link>http://blogs.digitss.com/database/mysql/mysql5-problem-while-creating-new-user-sql-error-1133-cant-find-any-matching-row-in-the-user-table/</link>
		<comments>http://blogs.digitss.com/database/mysql/mysql5-problem-while-creating-new-user-sql-error-1133-cant-find-any-matching-row-in-the-user-table/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 12:57:08 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[heidisql]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=510</guid>
		<description><![CDATA[When we use GUI tools like HeidiSQL with MySQL Windows binaries - setup from MySQL.com might be creating issues like these. Because recently faced errors #1364 and #1133 both became visible while I did clean install of MySQL by downloading Windows Installer for MySQL 5.5.8 from MySQL.com and not while using it with MySQL as part of some WAMP package.]]></description>
			<content:encoded><![CDATA[<div id="attachment_511" class="wp-caption alignleft" style="width: 120px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/01/mysql-logo1.png"><img class="size-full wp-image-511" title="MySQL 5.5.8" src="http://blogs.digitss.com/wp-content/uploads/2011/01/mysql-logo1.png" alt="MySQL 5.5.8" width="110" height="57" /></a><p class="wp-caption-text">MySQL 5.x</p></div>
<p>When we use GUI tools like <strong>HeidiSQL</strong> with <strong>MySQL Windows binaries</strong> - setup from MySQL.com might be creating issues like these. Because recently faced errors #1364 and #1133 both became visible while I did clean install of MySQL by downloading Windows Installer for <strong>MySQL 5.5.8</strong> from <a title="MySQL Home" href="www.mysql.com" target="_blank">MySQL.com</a> and not while using it with <strong>MySQL</strong> as part of some <strong>WAMP package</strong>.</p>
<p>It must be because the way some parameters come as defaults while we use MySQL installer or might be the way we configure the <em><strong>MySQL Instance</strong></em> using <em>MySQL instance configuration wizard</em>.</p>
<h4>SQL Error (1133): Can't find any matching row in the user table</h4>
<p>Now we will get above error message due to SQL_MODE variable value set to <a href="http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html#sqlmode_no_auto_create_user"><code>NO_AUTO_CREATE_USER</code></a>, you can check value for your server's sql-mode by using following SQL:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">SHOW</span> <span style="color: #993333; font-weight: bold;">VARIABLES</span> <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'SQL_MODE'</span>
&nbsp;</pre>
<p>Output can be something like STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION as we can specify multiple values separated by comma. NO_AUTO_CREATE_USER won't let you create users with empty passwords.</p>
<blockquote><p>Prevent the <a title="12.4.1.3. GRANT Syntax" href="http://dev.mysql.com/doc/refman/5.0/en/grant.html"><code>GRANT</code></a> statement from automatically creating new users if it would otherwise do so, unless a nonempty password also is specified. (Added in MySQL 5.0.2)</p></blockquote>
<p>If you're using HeidiSQL 6 or earlier you won't be able to create users even if you specify password due to the way HeidiSQL constructs the SQL to create user. See the screen-shot:<span id="more-510"></span></p>
<div id="attachment_512" class="wp-caption alignleft" style="width: 441px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/01/mysql-error-1133-while-creating-new-user.png"><img class="size-full wp-image-512" title="MySQL Error 1133: While Creating New User" src="http://blogs.digitss.com/wp-content/uploads/2011/01/mysql-error-1133-while-creating-new-user.png" alt="MySQL Error 1133: While Creating New User" width="431" height="323" /></a><p class="wp-caption-text">MySQL Error 1133: While Creating New User</p></div>
<div style="clear:both">
It seems like this won't let you create user anyway, unless you do it manually or download <a title="Click to see changeset/diff" href="http://code.google.com/p/heidisql/source/detail?r=3606">HediSQL 6.0.0.3606</a> which has this bug fixed.</p>
<p>The problem is not this SQL_MODE value but it's the message which is confusing and misleads user (programmer) about actual problem. I have seen bug reported for this error on MySQL bug list 2 years back and looks like it is unassigned. I know it's minor but can lead to confusion.
</p></div>
<p><strong>Solution:</strong> There are 3 ways to fix this.</p>
<p>A) Download latest version if you're using HeidiSQL and facing this problem with HeidiSQL.</p>
<p>B) Change SQL_MODE if you can't change your tool or SQL statement syntax somehow. You can either set it for SESSION if you want to fix it for a while and get away with it for now.</p>
<p>C) Use SQL similar to below:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">CREATE</span> USER <span style="color: #ff0000;">'digitss'</span>@<span style="color: #ff0000;">'localhost'</span> <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'digitss'</span>;
<span style="color: #993333; font-weight: bold;">GRANT</span> EXECUTE, PROCESS, <span style="color: #993333; font-weight: bold;">SELECT</span>, <span style="color: #993333; font-weight: bold;">SHOW</span> <span style="color: #993333; font-weight: bold;">DATABASES</span>, <span style="color: #993333; font-weight: bold;">SHOW</span> <span style="color: #993333; font-weight: bold;">VIEW</span>, <span style="color: #993333; font-weight: bold;">ALTER</span>, <span style="color: #993333; font-weight: bold;">ALTER</span> ROUTINE, <span style="color: #993333; font-weight: bold;">CREATE</span>, <span style="color: #993333; font-weight: bold;">CREATE</span> ROUTINE, <span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TEMPORARY</span> <span style="color: #993333; font-weight: bold;">TABLES</span>, <span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">VIEW</span>, <span style="color: #993333; font-weight: bold;">DELETE</span>, <span style="color: #993333; font-weight: bold;">DROP</span>, EVENT, <span style="color: #993333; font-weight: bold;">INDEX</span>, <span style="color: #993333; font-weight: bold;">INSERT</span>, <span style="color: #993333; font-weight: bold;">REFERENCES</span>, <span style="color: #993333; font-weight: bold;">TRIGGER</span>, <span style="color: #993333; font-weight: bold;">UPDATE</span>, <span style="color: #993333; font-weight: bold;">CREATE</span> USER, FILE, <span style="color: #993333; font-weight: bold;">LOCK</span> <span style="color: #993333; font-weight: bold;">TABLES</span>, RELOAD, REPLICATION CLIENT, REPLICATION SLAVE, SHUTDOWN, SUPER <span style="color: #993333; font-weight: bold;">ON</span> *.* <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #ff0000;">'digitss'</span>@<span style="color: #ff0000;">'localhost'</span> <span style="color: #993333; font-weight: bold;">WITH</span> <span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">OPTION</span>;
&nbsp;</pre>
<p>Basically earlier version of <strong>HeidiSQL</strong> had different order for above SQL command.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/database/mysql/mysql-5-5-8-problem-while-creating-new-user-sql-error-1364-field-authentication_string-doesnt-have-a-default-value/" rel="bookmark" title="January 16, 2011">MySQL 5.5.8 &#8211; Problem while Creating new User (SQL Error (1364): Field &#8216;authentication_string&#8217; doesn&#8217;t have a default value)</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/" rel="bookmark" title="July 5, 2010">HeidiSQL 5.1 &#8211; good has got better</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/" rel="bookmark" title="January 10, 2009">HeidiSQL 4.0 RC1 released</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/backup-restore-mysql-db-using-mysqldump-quick-reference/" rel="bookmark" title="October 25, 2009">backup/restore MySQL db using MYSQLDUMP (quick reference)</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/top-free-open-source-tools-for-mysql-development-administration/" rel="bookmark" title="February 17, 2008">Top free / open-source tools for MySQL Development / Administration</a></li>
</ul>
<p><!-- Similar Posts took 38.367 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/database/mysql/mysql5-problem-while-creating-new-user-sql-error-1133-cant-find-any-matching-row-in-the-user-table/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MySQL 5.5.8 &#8211; Problem while Creating new User (SQL Error (1364): Field &#8216;authentication_string&#8217; doesn&#8217;t have a default value)</title>
		<link>http://blogs.digitss.com/database/mysql/mysql-5-5-8-problem-while-creating-new-user-sql-error-1364-field-authentication_string-doesnt-have-a-default-value/</link>
		<comments>http://blogs.digitss.com/database/mysql/mysql-5-5-8-problem-while-creating-new-user-sql-error-1364-field-authentication_string-doesnt-have-a-default-value/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 11:42:52 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=504</guid>
		<description><![CDATA[I have just downloaded and setup MySQL 5.5.8 community server for Windows (32bit Installer) from MySQL official downloads. After downloading while I tried connecting it with HeidiSQL 5.x I got following error "Problem while Creating new User (SQL Error (1364): Field 'authentication_string' doesn't have a default value)".]]></description>
			<content:encoded><![CDATA[<div id="attachment_505" class="wp-caption alignleft" style="width: 120px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/01/mysql-logo.png"><img class="size-full wp-image-505" title="MySQL 5.5.8" src="http://blogs.digitss.com/wp-content/uploads/2011/01/mysql-logo.png" alt="MySQL 5.5.8" width="110" height="57" /></a><p class="wp-caption-text">MySQL 5.5.8</p></div>
<p>I have just downloaded and setup <strong>MySQL 5.5.8 community server for Windows</strong> (32bit Installer) from <a title="MySQL Download" href="http://www.mysql.com/downloads/mysql/" target="_blank">MySQL official downloads</a>. After downloading while I tried connecting it with HeidiSQL 5.x I got following error "<strong>Problem while Creating new User (SQL Error (1364): Field 'authentication_string' doesn't have a default value)</strong>".</p>
<p>It seems like it's a problem with <strong>HeidiSQL-5</strong>, probably due to the fact that table schema for <strong>mysql.users</strong> table might be changed in <strong>MySQL 5.5.8</strong>. You might see something like following if you're using <strong>HeidiSQL-5</strong>.</p>
<div id="attachment_506" class="wp-caption alignleft" style="width: 470px"><a href="http://blogs.digitss.com/wp-content/uploads/2011/01/mysql-5.5_heidisql_create_user_error.png"><img class="size-full wp-image-506" title="MySQL5.5 &gt; Create User error while using HeidiSQL 5.0" src="http://blogs.digitss.com/wp-content/uploads/2011/01/mysql-5.5_heidisql_create_user_error.png" alt="MySQL5.5 &gt; Create User error while using HeidiSQL 5.0" width="460" height="345" /></a><p class="wp-caption-text">MySQL5.5 &gt; Create User error while using HeidiSQL 5.0</p></div>
<div style="clear: both;"><strong>Solution:</strong> There are 2 ways to fix the problem:</p>
<p>A) Download HeidiSQL 6.0 and try creating user again.<span id="more-504"></span></p>
<p>B) Go to "<strong>users</strong>" table in "<strong>mysql</strong>" db and change the definition of table, alter table structure and allow null value for "<em>authentication_string</em>" field.</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`user`</span>  <span style="color: #993333; font-weight: bold;">CHANGE</span> <span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #ff0000;">`authentication_string`</span> <span style="color: #ff0000;">`authentication_string`</span> TEXT <span style="color: #993333; font-weight: bold;">NULL</span> COLLATE <span style="color: #ff0000;">'utf8_bin'</span> AFTER <span style="color: #ff0000;">`plugin`</span>;
&nbsp;</pre>
<p>Ideally one should change the query if they are writing SQL statement to create user manually, but when we are using such tools it's not possible to do that and not logical either.</p>
</div>
<p>If you have encountered any bumps on the road while upgrading to <strong>MySQL 5.5</strong>, please do share with us.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/database/mysql/mysql5-problem-while-creating-new-user-sql-error-1133-cant-find-any-matching-row-in-the-user-table/" rel="bookmark" title="January 16, 2011">MySQL5 Problem while creating new user – SQL Error (1133): Can&#8217;t find any matching row in the user table</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/" rel="bookmark" title="January 10, 2009">HeidiSQL 4.0 RC1 released</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/" rel="bookmark" title="July 5, 2010">HeidiSQL 5.1 &#8211; good has got better</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/top-free-open-source-tools-for-mysql-development-administration/" rel="bookmark" title="February 17, 2008">Top free / open-source tools for MySQL Development / Administration</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/using-views-to-avoid-cross-database-connection-mysql/" rel="bookmark" title="July 6, 2010">Using Views to avoid cross database connection &#8211; MySQL</a></li>
</ul>
<p><!-- Similar Posts took 31.087 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/database/mysql/mysql-5-5-8-problem-while-creating-new-user-sql-error-1364-field-authentication_string-doesnt-have-a-default-value/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using Views to avoid cross database connection &#8211; MySQL</title>
		<link>http://blogs.digitss.com/database/mysql/using-views-to-avoid-cross-database-connection-mysql/</link>
		<comments>http://blogs.digitss.com/database/mysql/using-views-to-avoid-cross-database-connection-mysql/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 18:48:42 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=367</guid>
		<description><![CDATA[Table Views can be used as an unconventional way to avoid cross/multiple database connections sometimes..! Yes, it can be. I came across such case and found that it can be handy in some simple cases when we just want to avoid connection to another database on the same MySQL server and we can't afford to create that table in the same database due to some reasons.]]></description>
			<content:encoded><![CDATA[<div style="clear: left;"><strong>Table Views</strong> can be used as an unconventional way to <strong>avoid cross/multiple database connections</strong> sometimes..! Yes, it can be. I came across such case and found that it can be handy in some simple cases when we just want to avoid connection to another database on the same MySQL server and we can't afford to create that table in the same database due to some reasons.</div>
<div id="attachment_389" class="wp-caption alignleft" style="width: 373px"><strong><strong><a href="http://blogs.digitss.com/wp-content/uploads/2010/07/views2.jpg"><img class="size-full wp-image-389" title="Views" src="http://blogs.digitss.com/wp-content/uploads/2010/07/views2.jpg" alt="Views" width="363" height="259" /></a></strong></strong><p class="wp-caption-text">Views - Image courtesy Flickr</p></div>
<div style="clear: both;">It's very simple. You can have your table "contacts" in "my_db" database and you want to access this table (not just read need to write/insert and update too) in another database named "another_db".<br />
You can have your "contacts" table in "my_db" with following syntax: <span id="more-367"></span></div>
<pre class="sql"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #ff0000;">`contacts`</span> <span style="color: #66cc66;">&#40;</span>
	<span style="color: #ff0000;">`id`</span> INT<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span>,
	<span style="color: #ff0000;">`first_name`</span> VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>,
	<span style="color: #ff0000;">`last_name`</span> VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>,
	<span style="color: #ff0000;">`email`</span> VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">NULL</span>,
	<span style="color: #ff0000;">`cell_phone`</span> VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">NULL</span>,
	<span style="color: #ff0000;">`home_phone`</span> VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">25</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">NULL</span>,
	<span style="color: #ff0000;">`note`</span> VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #993333; font-weight: bold;">NULL</span>,
	<span style="color: #993333; font-weight: bold;">PRIMARY</span> <span style="color: #993333; font-weight: bold;">KEY</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">`id`</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span>
ENGINE=MyISAM
ROW_FORMAT=<span style="color: #993333; font-weight: bold;">DEFAULT</span>;
&nbsp;</pre>
<p>And you can create your view in "another_db" database with following syntax:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span> * <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #ff0000;">`my_db`</span>.<span style="color: #ff0000;">`contacts`</span>
&nbsp;</pre>
<p>View definition will be updated to following automatically:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #ff0000;">`my_db`</span>.<span style="color: #ff0000;">`contacts`</span>.<span style="color: #ff0000;">`id`</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">`id`</span>,<span style="color: #ff0000;">`my_db`</span>.<span style="color: #ff0000;">`contacts`</span>.<span style="color: #ff0000;">`first_name`</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">`first_name`</span>,<span style="color: #ff0000;">`my_db`</span>.<span style="color: #ff0000;">`contacts`</span>.<span style="color: #ff0000;">`last_name`</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">`last_name`</span>,<span style="color: #ff0000;">`my_db`</span>.<span style="color: #ff0000;">`contacts`</span>.<span style="color: #ff0000;">`email`</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">`email`</span>,<span style="color: #ff0000;">`my_db`</span>.<span style="color: #ff0000;">`contacts`</span>.<span style="color: #ff0000;">`cell_phone`</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">`cell_phone`</span>,<span style="color: #ff0000;">`my_db`</span>.<span style="color: #ff0000;">`contacts`</span>.<span style="color: #ff0000;">`home_phone`</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">`home_phone`</span>,<span style="color: #ff0000;">`my_db`</span>.<span style="color: #ff0000;">`contacts`</span>.<span style="color: #ff0000;">`note`</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">`note`</span> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #ff0000;">`my_db`</span>.<span style="color: #ff0000;">`contacts`</span>
&nbsp;</pre>
<p>That's it we are done.<br />
Now we can execute any Insert, Update or Select query on this view, which will in turn change data in "mydb.contacts" table.</p>
<p>This can be a simpler solution if we want to avoid dealing with handling multiple database in <strong>PHP</strong> or any other server-side programming language.</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #ff0000;">`v_contacts`</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">`first_name`</span>, <span style="color: #ff0000;">`last_name`</span>, <span style="color: #ff0000;">`email`</span>, <span style="color: #ff0000;">`cell_phone`</span>, <span style="color: #ff0000;">`note`</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Bill'</span>, <span style="color: #ff0000;">'Gates'</span>, <span style="color: #ff0000;">'bill@msn.com'</span>, <span style="color: #ff0000;">'7188802201'</span>, <span style="color: #ff0000;">'Former Microsoft CEO'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>This is not something new; we knew and we read this all while we were at college. But it makes us feel good if we can put something like this at work which can be a small thing but can help us saving some time..!</p>
<p>Friends, comment if you liked this post, or share your experiences.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/database/possible-sybase-sql-anywhere-bug/" rel="bookmark" title="April 12, 2009">Possible Sybase SQL Anywhere bug</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/mysql-5-5-8-problem-while-creating-new-user-sql-error-1364-field-authentication_string-doesnt-have-a-default-value/" rel="bookmark" title="January 16, 2011">MySQL 5.5.8 &#8211; Problem while Creating new User (SQL Error (1364): Field &#8216;authentication_string&#8217; doesn&#8217;t have a default value)</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/" rel="bookmark" title="July 5, 2010">HeidiSQL 5.1 &#8211; good has got better</a></li>
<li><a href="http://blogs.digitss.com/programming/printing-data-table-vertically-why-and-how/" rel="bookmark" title="January 3, 2011">Printing data table vertically..! Why? and How?</a></li>
<li><a href="http://blogs.digitss.com/database/alternate-to-find_in_set-for-non-mysql-databases/" rel="bookmark" title="March 6, 2011">Alternate to FIND_IN_SET for non-MySQL databases</a></li>
</ul>
<p><!-- Similar Posts took 15.614 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/database/mysql/using-views-to-avoid-cross-database-connection-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HeidiSQL 5.1 &#8211; good has got better</title>
		<link>http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/</link>
		<comments>http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 12:45:16 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[heidisql]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=384</guid>
		<description><![CDATA[have been using HeidiSQL since more than three and half years now and I am really happy with it. I must say that we work with heavy database consisting of more than 400 tables and database size exceeding few GBs but HeidiSQL has never let us down. I have tried loading my development database with phpMyAdmin and SQL Buddy both but they just failed to load such a large database with few hundreds of tables..! But with HeidiSQL I never had any problem except I got some crashing sometime in newer 5.x version but I am sure all such things will be fixed in coming builds. I am not telling that there are no other good tools are available in the market but HeidiSQL is in premium open-source tool at free of cost. I remember I had written a post on HeidiSQL 4.x more than a year ago and today we are up with HeidiSQL 5.1.]]></description>
			<content:encoded><![CDATA[<p><strong> </strong></p>
<div id="attachment_385" class="wp-caption alignleft" style="width: 100px"><strong><strong><a href="http://blogs.digitss.com/wp-content/uploads/2010/07/heidisql_logo.png"><img class="size-full wp-image-385" title="HeidiSQL" src="http://blogs.digitss.com/wp-content/uploads/2010/07/heidisql_logo.png" alt="HeidiSQL" width="90" height="90" /></a></strong></strong><p class="wp-caption-text">HeidiSQL</p></div>
<p><strong>HeidiSQL</strong> has been excellent <strong>SQL Administration</strong> and <strong>Development tool</strong> so far for me. <strong>HeidiSQL</strong> has active development team which keeps adding new feature and upgrading and correcting bugs to get us the great tool for <strong>MySQL development</strong>.</p>
<p>I have been using <strong>HeidiSQL</strong> since more than three and half years now and I am really happy with it. I must say that we work with heavy database consisting of more than 400 tables and database size exceeding few GBs but HeidiSQL has never let us down. I have tried loading my development database with <a title="phpMyAdmin" href="http://www.phpmyadmin.net/" target="_blank">phpMyAdmin</a> and <a title="SQL Buddy" href="http://www.sqlbuddy.com/" target="_blank">SQL Buddy</a> both but they just failed to load such a large database with few hundreds of tables..! But with <strong>HeidiSQL</strong> I never had any problem except I got some crashing sometime in newer 5.x version but I am sure all such things will be fixed in coming builds. I am not telling that there are no other good tools are available in the market but <strong>HeidiSQL</strong> is in <strong>premium open-source tool</strong> at <strong>free of cost</strong>. I remember I had written a post on <a title="HeidiSQL 4.0 RC1 released" href="http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/" target="_blank"><strong>HeidiSQL 4.x</strong></a> more than a year ago and today we are up with <a title="Download HeidiSQL" href="http://www.heidisql.com/download.php" target="_blank">HeidiSQL 5.1</a>.<span id="more-384"></span></p>
<div id="attachment_386" class="wp-caption alignleft" style="width: 581px"><a href="http://blogs.digitss.com/wp-content/uploads/2010/07/HeidiSQL51.jpg"><img class="size-full wp-image-386" title="HeidiSQL 5.1 Interface" src="http://blogs.digitss.com/wp-content/uploads/2010/07/HeidiSQL51.jpg" alt="HeidiSQL 5.1 Interface" width="571" height="423" /></a><p class="wp-caption-text">HeidiSQL 5.1 Interface</p></div>
<h2 style="clear: both;">New Features with HeidiSQL 5.x are:</h2>
<ul>
<li><strong>Improved UI and design:</strong> better, handy interface to edit table structure, indexes, fields - most of routine tasks are at almost 1 or 2 clicks.</li>
<li><strong>Improved Stored Procedure, Trigger and new Event support</strong>: <strong>Trigger</strong> and <strong>Stored routine</strong> support has improved while new support for <strong>MySQL Events</strong> are added..!</li>
<li><strong>Excellent MySQL User Management</strong>: User Management support has been good which has improved.</li>
<li><strong>Multiple Query tabs</strong>: This feature was one of my much awaited feature. I am loving it.:) <em>Bunch of Thanks HeidiSQL Team for this..!</em> <img src='http://blogs.digitss.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li><strong>Copy selected Rows as SQL</strong>: You can go to table data view, filter data by your custom criteria and out of that you can select N rows and export as SQL, CSV, XML or HTML. I really like this Copy selected rows as SQL. Excellent and real quick.</li>
<li>Improved Data Filter, Export and Find features.</li>
</ul>
<p>Above listed features are what I have observed and I liked during my usage of <strong>HeidiSQL 5.x</strong> there might be few or more which I might have missed out...! I am sure if you are not using HeidiSQL so far and if you will give it a try you will not leave it for sure.</p>
<p><strong>HeidiSQL fueatures as defined in ReadMe</strong></p>
<blockquote><p>HeidiSQL is an easy-to-use interface and a "working-horse" for web-developers<br />
using the popular MySQL-Database. It allows you to manage and browse your<br />
databases and tables from an intuitive Windows® interface.</p>
<p>With HeidiSQL you will also be able to<br />
* Generate nice SQL-exports<br />
* Synchronize tables between two databases<br />
* Manage user-privileges<br />
* Import text-files<br />
* Export table-data as CSV, HTML, XML and SQL<br />
* Browse and edit table-data using a comfortable grid<br />
* Create and edit tables, views, stored routines and triggers<br />
* Bulk edit tables (move to db, change engine, collation etc.)<br />
* Batch-insert ascii or binary files into tables<br />
* Write queries with customizable syntax-highlighting and code-completion<br />
* Pretty reformat disordered SQL<br />
* Monitor and kill client-processes<br />
* Connect to servers via commandline<br />
* Find specific text in all tables of all databases of one server<br />
* Optimize and repair tables in a batch manner<br />
* And much more</p></blockquote>
<p>You can browse through <strong><a title="HeidiSQL screenshots" href="http://www.heidisql.com/screenshots.php" target="_blank">HeidiSQL 5.1 screenshots</a> </strong>on <a title="HeidiSQL Home" href="http://www.heidisql.com" target="_blank">official website</a> to take a look at what's new and what is being offered or just <a title="Download HeidiSQL" href="http://www.heidisql.com/download.php" target="_blank"><strong>download to try</strong></a>.</p>
<p>With this post I would like to appreciate and thanks HeidiSQL team for great work. Thanks Team.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/" rel="bookmark" title="January 10, 2009">HeidiSQL 4.0 RC1 released</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/top-free-open-source-tools-for-mysql-development-administration/" rel="bookmark" title="February 17, 2008">Top free / open-source tools for MySQL Development / Administration</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/backup-restore-mysql-db-using-mysqldump-quick-reference/" rel="bookmark" title="October 25, 2009">backup/restore MySQL db using MYSQLDUMP (quick reference)</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/mysql5-problem-while-creating-new-user-sql-error-1133-cant-find-any-matching-row-in-the-user-table/" rel="bookmark" title="January 16, 2011">MySQL5 Problem while creating new user – SQL Error (1133): Can&#8217;t find any matching row in the user table</a></li>
<li><a href="http://blogs.digitss.com/news/netbeans-7-0-rc1-released/" rel="bookmark" title="April 4, 2011">Netbeans 7.0 RC1 Released</a></li>
</ul>
<p><!-- Similar Posts took 28.929 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Export/Import CSV files with MySQL &#8211; No external tool required</title>
		<link>http://blogs.digitss.com/database/mysql/export-import-csv-files-with-mysql-no-external-tool-required/</link>
		<comments>http://blogs.digitss.com/database/mysql/export-import-csv-files-with-mysql-no-external-tool-required/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 18:45:50 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=316</guid>
		<description><![CDATA[Loading data from and to CSV or other tab delimited or similar file format is essential in day to day operation. With MySQL it is easy to load data into table using files and exporting data into CSV files is quite easy. No need to use any external tool it can be done right there from the query tool/command prompt, no specific GUI tool required.]]></description>
			<content:encoded><![CDATA[<p>Loading data from and to CSV or other TAB DELIMITED or similar file format is essential in day to day operation. With MySQL it is easy to load data into table using files and exporting data into CSV files is quite easy. No need to use any external tool it can be done right there from the query tool/command prompt, no specific GUI tool required.</p>
<p>Let's see how?</p>
<h3>Exporting data as CSV file directly using simple MySQL Query</h3>
<p>Simply add INTO OUTFILE [FILE_PATH] in your query and you are done. Here is a simple example:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span> * <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">TABLE</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">OUTFILE</span> <span style="color: #ff0000;">'X:/[FILE]'</span></pre>
<p>Above statement uses default options for file export of result set of a query, but it is simple to override them. By default file will be TAB DELIMITED file. We can always override as showed in example below:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span> * <span style="color: #993333; font-weight: bold;">FROM</span>  <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">TABLE</span><span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">OUTFILE</span> <span style="color: #ff0000;">'X:/[FILE]'</span>
<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span>
<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span></pre>
<p>OR</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span> * <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">OUTFILE</span> <span style="color: #ff0000;">'X:/[FILE]'</span>
<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span>
<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
<span style="color: #993333; font-weight: bold;">FROM</span>  <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">TABLE</span><span style="color: #66cc66;">&#93;</span></pre>
<p>The beauty is it don't really matter where you place FROM TABLE clause, any of the style would work from above example. Don't forget that we can use all our complex join or where conditions which we really use with SELECT.<span id="more-316"></span></p>
<p>Full Syntex:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">ALL</span> | <span style="color: #993333; font-weight: bold;">DISTINCT</span> | DISTINCTROW <span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span>HIGH_PRIORITY<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">STRAIGHT_JOIN</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span>SQL_SMALL_RESULT<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>SQL_BIG_RESULT<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>SQL_BUFFER_RESULT<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span>SQL_CACHE | SQL_NO_CACHE<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span>SQL_CALC_FOUND_ROWS<span style="color: #66cc66;">&#93;</span>
select_expr <span style="color: #66cc66;">&#91;</span>, select_expr ...<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">FROM</span> table_references
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">WHERE</span> where_condition<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #66cc66;">&#123;</span>col_name | expr | position<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">ASC</span> | <span style="color: #993333; font-weight: bold;">DESC</span><span style="color: #66cc66;">&#93;</span>, ... <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">WITH</span> ROLLUP<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">HAVING</span> where_condition<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #66cc66;">&#123;</span>col_name | expr | position<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">ASC</span> | <span style="color: #993333; font-weight: bold;">DESC</span><span style="color: #66cc66;">&#93;</span>, ...<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">LIMIT</span> <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#91;</span>offset,<span style="color: #66cc66;">&#93;</span> row_count | row_count OFFSET offset<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span>PROCEDURE procedure_name<span style="color: #66cc66;">&#40;</span>argument_list<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">OUTFILE</span> <span style="color: #ff0000;">'file_name'</span> export_options
| <span style="color: #993333; font-weight: bold;">INTO</span> DUMPFILE <span style="color: #ff0000;">'file_name'</span>
| <span style="color: #993333; font-weight: bold;">INTO</span> var_name <span style="color: #66cc66;">&#91;</span>, var_name<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">FOR</span> <span style="color: #993333; font-weight: bold;">UPDATE</span> | <span style="color: #993333; font-weight: bold;">LOCK</span> <span style="color: #993333; font-weight: bold;">IN</span> SHARE MODE<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span></pre>
<h3>Importing data from CSV file directly using simple MySQL Query</h3>
<p>Here is the simplest way to do it:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #993333; font-weight: bold;">DATA</span> <span style="color: #993333; font-weight: bold;">INFILE</span> <span style="color: #ff0000;">'X:/[FILE]'</span>
<span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">TABLE</span><span style="color: #66cc66;">&#93;</span></pre>
<p>Similar to Export option of MySQL it will expect file to be TAB DELIMITED if we don't specify any option for it in it's simplest form. So if you simple EXPORT file without any custom specification as a first query example it would simple LOAD DATA from that file, but if you have a file with custom separator than it needs to be specified.</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #993333; font-weight: bold;">DATA</span> <span style="color: #993333; font-weight: bold;">INFILE</span> <span style="color: #ff0000;">'X:/[FILE]'</span>
<span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">TABLE</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span>
<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span></pre>
<p>Full syntex:</p>
<pre class="sql"><span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #993333; font-weight: bold;">DATA</span> <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">LOW_PRIORITY</span> | CONCURRENT<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">LOCAL</span><span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold;">INFILE</span> <span style="color: #ff0000;">'file_name'</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">REPLACE</span> | <span style="color: #993333; font-weight: bold;">IGNORE</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">TABLE</span> tbl_name
<span style="color: #66cc66;">&#91;</span>CHARACTER <span style="color: #993333; font-weight: bold;">SET</span> charset_name<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#123;</span><span style="color: #993333; font-weight: bold;">FIELDS</span> | <span style="color: #993333; font-weight: bold;">COLUMNS</span><span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#91;</span>TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'string'</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">OPTIONALLY</span><span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'char'</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">ESCAPED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'char'</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">LINES</span>
<span style="color: #66cc66;">&#91;</span>STARTING <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'string'</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span>TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'string'</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">IGNORE</span> number <span style="color: #993333; font-weight: bold;">LINES</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#40;</span>col_name_or_user_var,...<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">SET</span> col_name = expr,...<span style="color: #66cc66;">&#93;</span></pre>
<p>So exporting and importing data from MySQL seems quite easy and we do not need to write any programming statement to format them just a simple query can do it.</p>
<p>References: (For more reference please refer)<br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/select.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/select.html</a><br />
<a href="http://dev.mysql.com/doc/refman/5.1/en/load-data.html" target="_blank">http://dev.mysql.com/doc/refman/5.1/en/load-data.html</a><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/" rel="bookmark" title="July 5, 2010">HeidiSQL 5.1 &#8211; good has got better</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/using-views-to-avoid-cross-database-connection-mysql/" rel="bookmark" title="July 6, 2010">Using Views to avoid cross database connection &#8211; MySQL</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/" rel="bookmark" title="January 10, 2009">HeidiSQL 4.0 RC1 released</a></li>
<li><a href="http://blogs.digitss.com/database/alternate-to-find_in_set-for-non-mysql-databases/" rel="bookmark" title="March 6, 2011">Alternate to FIND_IN_SET for non-MySQL databases</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/mysql-5-5-8-problem-while-creating-new-user-sql-error-1364-field-authentication_string-doesnt-have-a-default-value/" rel="bookmark" title="January 16, 2011">MySQL 5.5.8 &#8211; Problem while Creating new User (SQL Error (1364): Field &#8216;authentication_string&#8217; doesn&#8217;t have a default value)</a></li>
</ul>
<p><!-- Similar Posts took 9.632 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/database/mysql/export-import-csv-files-with-mysql-no-external-tool-required/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>backup/restore MySQL db using MYSQLDUMP (quick reference)</title>
		<link>http://blogs.digitss.com/database/mysql/backup-restore-mysql-db-using-mysqldump-quick-reference/</link>
		<comments>http://blogs.digitss.com/database/mysql/backup-restore-mysql-db-using-mysqldump-quick-reference/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 10:59:42 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=314</guid>
		<description><![CDATA[In my projects we have to deal with exporting system/meta data sync with production server on a regular basis and this seems to be easier than using utilities provided by GUI tools, be it HeidiSQL, PHPMySQL, SQLYog or anything else. Though it depends on project to project and person to person but many times when we have to restore big backup created with HeidiSQL or SQLYog I have seen programs/database exhausted such that increasing packet size won't help either. But mysqldump/mysql restore always been a piece of cake to walk with.]]></description>
			<content:encoded><![CDATA[<p>Whether you are using <strong>MySQL </strong>with <em>MyISAM </em>or <em>InnoDB </em>or other database engine it is possible to backup/restore database using <a title="MySQL Help - mysqldump" href="http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html" target="_blank"><strong>MYSQLDUMP</strong></a> utility. Though if you have all tables in <em>MyISAM </em>format <a title="MySQL Help - mysqlhotcopy" href="http://dev.mysql.com/doc/refman/5.0/en/mysqlhotcopy.html" target="_blank"><strong>MYSQLHOTCOPY</strong></a> is faster option but in any case MYSQLDUMP is a handly tool if you have got a mix set of tables.</p>
<p>Commands are very quick simple and easy to execute and can be made automated by a PHP or other script/tool.</p>
<h3>How to backup using <strong>mysqldump?:</strong></h3>
<p>Before you use any of commands you have to move to <strong>mysql/bin</strong> directory of your MySQL installation and MySQL server should be up and running.</p>
<p>To backup all MySQL database on a server:</p>
<pre class="sql">mysqldump <span style="color: #808080; font-style: italic;">--user=[USER] --password=[PASSWORD] -A &gt; C:/BACKUP_PATH/BACKUP_TIMESTAMP.SQL</span></pre>
<p>To backup specific MySQL database on a server:</p>
<pre class="sql">mysqldump <span style="color: #808080; font-style: italic;">--user=[USER] --password=[PASSWORD] [DATABASE] &gt; C:/BACKUP_PATH/BACKUP_TIMESTAMP.SQL</span></pre>
<p>To backup certain tables in a MySQL database: <span id="more-314"></span></p>
<pre class="sql">mysqldump <span style="color: #808080; font-style: italic;">--user=[USER] --password=[PASSWORD] [DATABASE] --tables [TABLE_1] [TABLE_2] &gt; C:/BACKUP_PATH/BACKUP_TIMESTAMP.SQL</span></pre>
<h3>How to restore database/tables which are backed-up using mysqldump?</h3>
<p>Reach to mysql/bin directory on prompt and type in following command with correct backup file created with mysqldump utility and specify database to which you want dump-file SQL statements to be executed.</p>
<pre class="sql">mysql <span style="color: #808080; font-style: italic;">--user=[USER] --password=[PASSWORD] [DATABASE] &lt; C:/BACKUP_PATH/BACKUP_TIMESTAMP.SQL</span></pre>
<p>So easy and simple just specify database/tables along with connection credentials and use "&gt;" and "&lt;" (in and out) signs in a correct way and you are done.</p>
<p>In my projects we have to deal with exporting system/meta data sync with production server on a regular basis and this seems to be easier than using utilities provided by GUI tools, be it HeidiSQL, PHPMySQL, SQLYog or anything else. Though it depends on project to project and person to person but many times when we have to restore big backup created with HeidiSQL or SQLYog I have seen programs/database exhausted such that increasing packet size won't help either. But <em><strong>mysqldump/mysql restore</strong></em> always been a piece of cake to walk with.</p>
<p><em>For complete list of parameters of <strong>mysqldump</strong> please refer:</em> http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html<br />
<em>For <strong>mysqlhotcopy</strong> reference please refer:</em> http://dev.mysql.com/doc/refman/5.0/en/mysqlhotcopy.html<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/database/mysql/mysql5-problem-while-creating-new-user-sql-error-1133-cant-find-any-matching-row-in-the-user-table/" rel="bookmark" title="January 16, 2011">MySQL5 Problem while creating new user – SQL Error (1133): Can&#8217;t find any matching row in the user table</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/" rel="bookmark" title="July 5, 2010">HeidiSQL 5.1 &#8211; good has got better</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/top-free-open-source-tools-for-mysql-development-administration/" rel="bookmark" title="February 17, 2008">Top free / open-source tools for MySQL Development / Administration</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/" rel="bookmark" title="January 10, 2009">HeidiSQL 4.0 RC1 released</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/using-views-to-avoid-cross-database-connection-mysql/" rel="bookmark" title="July 6, 2010">Using Views to avoid cross database connection &#8211; MySQL</a></li>
</ul>
<p><!-- Similar Posts took 8.666 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/database/mysql/backup-restore-mysql-db-using-mysqldump-quick-reference/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HeidiSQL 4.0 RC1 released</title>
		<link>http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/</link>
		<comments>http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 12:18:33 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[heidisql]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=177</guid>
		<description><![CDATA[I am not sure how many MySQL developers are using HeidiSQL for development but I am sure those who are using it will be fan of some of it's features.!

I have been using HeidiSQL tool for my php/mySQL development for a while now. (more than a year and half..!). Before few months I have upgraded to newer version of HeidiSQL which is 4.1 RC1. It has got quite new and exciting features, looks and skins are improved.]]></description>
			<content:encoded><![CDATA[<p>I am not sure how many MySQL developers are using <a title="HeidiSQL Home" href="http://www.heidisql.com/" target="_blank">HeidiSQL</a> for development but I am sure those who are using it will be fan of some of it's features.!</p>
<p>I have been using HeidiSQL tool for my php/mySQL development for a while now. (more than a year and half..!). Before few months I have upgraded to newer version of HeidiSQL which is 4.1 RC1. It has got quite new and exciting features, looks and skins are improved.<span id="more-177"></span></p>
<p><span style="text-decoration: underline;"><strong>The Good has got better...</strong></span><br />
<!--adsense--><br />
<strong>1. Better UI:</strong></p>
<p>As we can see in the image below that HeidiSQL 4.0 is packed with new icon set. Size of each database and tables are being displayed just next to object name in the left panel.<br />
Also shows up database objects size next to objects (tables, databases).<br />
<div id="attachment_178" class="wp-caption aligncenter" style="width: 689px"><img class="size-full wp-image-178" title="new_ui" src="http://blogs.digitss.com/wp-content/uploads/2008/11/new_ui.png" alt="New UI/Skin and icon-set" width="679" height="449" /><p class="wp-caption-text">New UI/Skin and icon-set</p></div></p>
<p><strong>2. Type In Search for Variables, Status and Process List:</strong></p>
<div id="attachment_179" class="wp-caption alignnone" style="width: 366px"><img class="size-full wp-image-179" title="type_in_search_for_variables" src="http://blogs.digitss.com/wp-content/uploads/2008/11/type_in_search_for_variables.png" alt="Type in Search for Variables, Status and Process List" width="356" height="210" /><p class="wp-caption-text">Type in Search for Variables, Status and Process List</p></div>
<p>We can search through system variable from the list on the fly and at the same time by just double clicking on it.</p>
<div id="attachment_188" class="wp-caption alignnone" style="width: 317px"><img class="size-full wp-image-188" title="Edit Variables" src="http://blogs.digitss.com/wp-content/uploads/2009/01/editvariable.png" alt="Edit Variables on the fly" width="307" height="167" /><p class="wp-caption-text">Edit Variables on the fly</p></div>
<p><strong>3. Improved Filter and Filter Editor:</strong></p>
<div id="attachment_189" class="wp-caption alignnone" style="width: 694px"><img class="size-full wp-image-189" title="New Filter editor" src="http://blogs.digitss.com/wp-content/uploads/2009/01/newfiltereditor.png" alt="New and Improved Data Filter editor" width="684" height="357" /><p class="wp-caption-text">New and Improved Data Filter editor</p></div>
<p>As we can see data filter has improved and we can see and edit that filter to anything manually. In previous versions it was just filtering data on all table columns and we didn't have any control on modifying those filter but now we can filter data on completely custom conditions. We just need to specify conditions we use after &lt;WHERE&gt; clause.</p>
<p>We can save applied filter by saving that "<strong>Perspective</strong>" and  specifying appropriate name for it, so that we can revert back to that view of data anytime in future.</p>
<p><strong>4. Better User Management control:</strong></p>
<p>User authentication and privilage control has improved and we can provide rights very easily till column level for any the object of any database.</p>
<div id="attachment_190" class="wp-caption alignnone" style="width: 370px"><img class="size-full wp-image-190" title="User Manager" src="http://blogs.digitss.com/wp-content/uploads/2009/01/usermanager.png" alt="User Manager" width="360" height="430" /><p class="wp-caption-text">User Manager</p></div>
<p>We can pick what rights a User can have and at the same time multi-table / column rights on multiple db and all that with variety of rights on each table or it's column.</p>
<div id="attachment_191" class="wp-caption alignnone" style="width: 250px"><img class="size-full wp-image-191" title="Extended User Management" src="http://blogs.digitss.com/wp-content/uploads/2009/01/extended_usermanagement.png" alt="Extended User Management" width="240" height="350" /><p class="wp-caption-text">Extended User Management</p></div>
<p><strong>5. Export Data:</strong></p>
<div id="attachment_192" class="wp-caption alignnone" style="width: 662px"><img class="size-full wp-image-192" title="Export Tables" src="http://blogs.digitss.com/wp-content/uploads/2009/01/exporttables.png" alt="Export Tables/Data" width="652" height="454" /><p class="wp-caption-text">Export Tables/Data</p></div>
<p>Export with different type of Compatibility options.</p>
<p><span style="text-decoration: underline;"><strong>What is bad/missing?</strong></span><br />
<!--adsense--><br />
<strong>1. Speed:</strong><br />
While dealing with database with hundreds of tables and size reaching few hundred megabytes it seems to be slower than commercial competitor like <a title="Navicat" href="http://www.navicat.com/" target="_blank">Navicat</a>. Although Navicat seems to be falling behind in user interface but works faster than HeidiSQL. Not sure what is keeping Heidi behind in this matter.</p>
<p><strong>2. Export/Import: </strong><br />
Export and Import needs to be improved while dealing with bulk of data. As many a times extended SQL export creates problem while importing. MySQL Dump work faster comparatively;</p>
<p><strong>3. Support for Stored Procedures / Triggers / Functions:<br />
</strong>Looking desperately to get  support for Stored Procedures, Triggers, Functions. Although <a title="ToadSoft Home" href="http://www.toadsoft.com/" target="_blank">Toad for MySQL</a> is there but it seems bit more heavy and HeidiSQL is so lightweight to play with.</p>
<p><strong>4. Inline data editing while Querying data:<br />
</strong>In 3.x<strong> </strong>versions of HeidiSQL it was possible to edit data from query result-set itself but now you have to go and filter data from filter tab itself. Even in Data tab now it asks for confirmation although it is to make sure users don't mess up data accidentally but it just takes some more time to edit. Anyway I don't complaint much about this data editing in Data tab/view for tables but I am going to miss this feature in Query tab as I can't edit my data resultset grid.<strong></strong></p>
<p><span style="text-decoration: underline;"><strong>Conclusion:<br />
</strong></span>Looking forward to see better HeidiSQL with Final Release of 4.0 as it seems to be they are working hard to get it right. As we can see nightly build for every day on the download section but RC1 has been out for sometime now.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/" rel="bookmark" title="July 5, 2010">HeidiSQL 5.1 &#8211; good has got better</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/backup-restore-mysql-db-using-mysqldump-quick-reference/" rel="bookmark" title="October 25, 2009">backup/restore MySQL db using MYSQLDUMP (quick reference)</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/top-free-open-source-tools-for-mysql-development-administration/" rel="bookmark" title="February 17, 2008">Top free / open-source tools for MySQL Development / Administration</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/mysql5-problem-while-creating-new-user-sql-error-1133-cant-find-any-matching-row-in-the-user-table/" rel="bookmark" title="January 16, 2011">MySQL5 Problem while creating new user – SQL Error (1133): Can&#8217;t find any matching row in the user table</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/mysql-5-5-8-problem-while-creating-new-user-sql-error-1364-field-authentication_string-doesnt-have-a-default-value/" rel="bookmark" title="January 16, 2011">MySQL 5.5.8 &#8211; Problem while Creating new User (SQL Error (1364): Field &#8216;authentication_string&#8217; doesn&#8217;t have a default value)</a></li>
</ul>
<p><!-- Similar Posts took 9.109 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL 5.1 General Availability announced</title>
		<link>http://blogs.digitss.com/database/mysql/mysql-5-1-general-availability-announced/</link>
		<comments>http://blogs.digitss.com/database/mysql/mysql-5-1-general-availability-announced/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 18:30:31 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/?p=180</guid>
		<description><![CDATA[MySQL 5.1 general availability is announced and it is available to be used for production use.]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-182" title="MySQL 5.1 GA" src="http://blogs.digitss.com/wp-content/uploads/2008/11/mysql_logo.jpg" alt="MySQL 5.1 GA" width="285" height="165" /></p>
<p>MySQL 5.1 general availability is announced and it is available to be used for production use.</p>
<p>MySQL 5.1 brings many new enhancements in the bag for world's most popular open source database. which includes Partitioning, Row based Replication, new Plugin Infrastructure and there are many more including general enhancements.</p>
<p>There is a long list of new enhancements which you can go through in <a title="What's New in MySQL 5.1" href="http://dev.mysql.com/doc/refman/5.1/en/mysql-nutshell.html" target="_blank">What's New</a> section here.</p>
<p><a title="MySQL 5.1 GA Download" href="http://dev.mysql.com/downloads/mysql/5.1.html" target="_blank">D</a><a href="http://dev.mysql.com/downloads/mysql/5.1.html" target="_blank">ownload it here</a> if you are ready to put it in production or want to play with it in your development enviornment.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/news/mysql-5-5-available-for-production/" rel="bookmark" title="January 16, 2011">MySQL 5.5 available for production</a></li>
<li><a href="http://blogs.digitss.com/php/setting-up-php-mysql-apache-with-most-up-to-date-wamp-package/" rel="bookmark" title="January 17, 2011">Setting up PHP, MySQL, Apache with most up-to-date WAMP Package</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/backup-restore-mysql-db-using-mysqldump-quick-reference/" rel="bookmark" title="October 25, 2009">backup/restore MySQL db using MYSQLDUMP (quick reference)</a></li>
<li><a href="http://blogs.digitss.com/database/alternate-to-find_in_set-for-non-mysql-databases/" rel="bookmark" title="March 6, 2011">Alternate to FIND_IN_SET for non-MySQL databases</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/" rel="bookmark" title="January 10, 2009">HeidiSQL 4.0 RC1 released</a></li>
</ul>
<p><!-- Similar Posts took 12.555 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/database/mysql/mysql-5-1-general-availability-announced/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top free / open-source tools for MySQL Development / Administration</title>
		<link>http://blogs.digitss.com/database/mysql/top-free-open-source-tools-for-mysql-development-administration/</link>
		<comments>http://blogs.digitss.com/database/mysql/top-free-open-source-tools-for-mysql-development-administration/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 11:39:27 +0000</pubDate>
		<dc:creator>Dharmavirsinh Jhala</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://blogs.digitss.com/mysql/top-freeopensource-tools-for-mysql-developmentadministration/</guid>
		<description><![CDATA[Here is list of great tools for PHP/MySQL 1. phpMyAdmin phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web. Currently it can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, manage keys on fields. Most basic and must have tool and everyone is [...]]]></description>
			<content:encoded><![CDATA[<p>Here is list of great tools for PHP/MySQL</p>
<p><em><strong>1. phpMyAdmin</strong></em></p>
<p><img src="http://blogs.digitss.com/wp-content/uploads/2008/02/pma_logo.PNG" alt="PHPMyAdmin" /></p>
<p>phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web. Currently it can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, manage keys on fields.</p>
<p>Most basic and must have tool and everyone is aware of it associated with PHP/MySQL and your shared web host must be providing you this tool to manage your databases on the web.</p>
<p><em>Type: </em>Web based/OpenSource<br />
<em>URL: </em><a title="phpMyAdmin Home" href="http://www.phpmyadmin.net" target="_blank">http://www.phpmyadmin.net</a><br />
<!--adsense--><br />
<em><strong>2. HeidiSQL</strong></em></p>
<p><img src="http://blogs.digitss.com/wp-content/uploads/2008/02/heidisql_logo.png" alt="HeidiSQL" /></p>
<p><em>HeidiSQL</em> is an easy-to-use interface and a "working-horse" for 		web-developers using the popular <a href="http://www.mysql.com/">MySQL-Database</a>. 		It allows you to manage and browse your databases and tables from an intuitive Windows® 		interface.<span id="more-6"></span> With HeidiSQL you will also be able to</p>
<ul>
<li>generate nice SQL-exports</li>
<li>synchronize tables between two databases</li>
<li>manage user-privileges</li>
<li>import text-files</li>
<li>export table-data as CSV, HTML and XML</li>
<li>browse and edit table-data using a comfortable grid</li>
<li>batch-insert ascii or binary files into tables</li>
<li>write queries with syntax-highlighting (next version will have also code-completion)</li>
<li>monitor and kill client-processes</li>
<li>connect to servers via commandline</li>
<li>and much more</li>
</ul>
<p>HeidiSQL is the best desktop based MySQL Administration tool I have ever used and I am in love with it since I have started using it. In my opinion it even beats many top selling commercial MySQL GUIs too.</p>
<p><em>Type:</em> Desktop/Opensource<br />
<em>URL:</em> <a title="HeidiSQL Home" href="http://www.heidisql.com" target="_blank">http://www.heidisql.com</a><em>Screenshots: </em><a title="View HeidiSQL screenshots" href="http://www.heidisql.com/screenshots.php">http://www.heidisql.com/screenshots.php</a><br />
<em>Download: </em><a title="Download HeidiSQL" href="http://www.heidisql.com">http://www.heidisql.com</a><br />
<!--adsense--><br />
<em><strong>3. MySQL GUI Tools</strong></em></p>
<p><img src="http://blogs.digitss.com/wp-content/uploads/2008/02/gui-tools.jpg" alt="MySQL GUI Tools" /></p>
<p>MySQL management tools from the MySQL itself, they are holding lot of potential and one of the must have with kind of tools.</p>
<p>MySQL GUI Tools include<br />
- MySQL Administrator<br />
- MySQL Query Browser<br />
- MySQL Migration Toolkit<br />
Available for Windows/Mac/Linux platform.<br />
<em> Type:</em> Desktop/ (GPL / commercial) Dual licensing.<br />
<em> URL:</em> <a title="MySQL GUI Tools" href="http://dev.mysql.com/downloads/gui-tools/" target="_blank">http://dev.mysql.com/downloads/gui-tools/</a><br />
<!--adsense--><br />
<em><strong> 4. MyDB Studio</strong></em></p>
<p>MyDB Studio is a complete collection of powerful tools  for MySQL Server administration.</p>
<p>Major features are listed below from their website.</p>
<ul>
<li>SSH tunneling to secure your connections which allows you to connect even your host doesn't  allow you remote access connection.</li>
<li>Admin privileges users with User Manager</li>
<li>Reload Server</li>
<li>Flush internal caches of MySQL uses</li>
<li>View/Kill server process</li>
<li>Export Server Variables in XML, Excel, Word, CSV</li>
<li>Create/Modify/Delete Database</li>
<li>Backup/Restore  database</li>
<li>Export Database Table info in XML, Excel, Word</li>
<li>Synchronise your database</li>
<li>Create complete Php scripts</li>
<li>Search in MySQL manual with MyDB Studio Embed Browser</li>
</ul>
<p><em>URL:</em> <a title="MyDB Studio home" href="http://www.mydb-studio.com" target="_blank">http://www.mydb-studio.com</a><em><br />
Screenshots: </em><a title="MyDB Studio Screenshots" href="http://www.mydb-studio.com/index.php?lang=en&amp;p=2" target="_blank">http://www.mydb-studio.com/index.php?lang=en&amp;p=2</a><br />
<em>Download:</em> <a title="Download MyDB Studio" href="http://www.mydb-studio.com/index.php?lang=en&amp;p=3" target="_blank">http://www.mydb-studio.com/index.php?lang=en&amp;p=3</a><br />
<!--adsense--><br />
<em><strong>5. SQL Front</strong></em></p>
<p>SQL-Front is a graphical GUI for the MySQL database. SQL-Front presents a uniform front-end for all of your current database projects. In practice, you can work with the database of your choice after only a few clicks.<br />
It helps to:</p>
<ul>
<li> Define and manage the database-structure, import data, editing data is now simple with this full-featured program. For designers with only a basic grasp of databases, this program is the way to go to make you independent of SQL gurus.</li>
<li>SQL-Front makes working with MySQL databases a snap without hiding the language from the user. The built-in SQL Editor provides syntax highlighting and context sensitive help, so even working with SQL commands and scripts will be a matter of convenience.</li>
</ul>
<p>URL: <a title="SQL Front Home" href="http://www.sql-front.com/" target="_blank">http://www.sql-front.com</a><br />
Screenshots: <a title="SQL Front Screenshots" href="http://www.sql-front.com/screenshots.html" target="_blank">http://www.sql-front.com/screenshots.html</a><br />
Download: <a title="Download SQL Front" href="http://www.sql-front.com/download.html" target="_blank">http://www.sql-front.com/download.html</a><br />
<!--adsense--><br />
<em><strong>6. </strong><strong><span class="product_title">SQLyog MySQL GUI - Community Edition</span></strong></em></p>
<p>One moe good GUI tool for MySQL. SQLyog comes with Enterprise license mode too with some more ability.  Other commercial products from SQLyog includes</p>
<ul>
<li><span class="product_title">SQLyog MySQL GUI - Enterprise Edition</span></li>
<li><span class="product_title">MONyog MySQL Monitor and Advisor</span></li>
</ul>
<p>From both above later MONyog Monitor and Advisor has more attracted me as it provides nice statics and chart and tips/advises for optimizing MySQL performance.  Actually it is worth having licensed administration tool for DBAs.</p>
<p>URL: <a title="MONyog Home" href="http://www.webyog.com" target="_blank">http://www.webyog.com</a><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-5-1-good-has-got-better/" rel="bookmark" title="July 5, 2010">HeidiSQL 5.1 &#8211; good has got better</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/backup-restore-mysql-db-using-mysqldump-quick-reference/" rel="bookmark" title="October 25, 2009">backup/restore MySQL db using MYSQLDUMP (quick reference)</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/mysql5-problem-while-creating-new-user-sql-error-1133-cant-find-any-matching-row-in-the-user-table/" rel="bookmark" title="January 16, 2011">MySQL5 Problem while creating new user – SQL Error (1133): Can&#8217;t find any matching row in the user table</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/mysql-5-5-8-problem-while-creating-new-user-sql-error-1364-field-authentication_string-doesnt-have-a-default-value/" rel="bookmark" title="January 16, 2011">MySQL 5.5.8 &#8211; Problem while Creating new User (SQL Error (1364): Field &#8216;authentication_string&#8217; doesn&#8217;t have a default value)</a></li>
<li><a href="http://blogs.digitss.com/database/mysql/heidisql-40-rc1-released/" rel="bookmark" title="January 10, 2009">HeidiSQL 4.0 RC1 released</a></li>
</ul>
<p><!-- Similar Posts took 4.516 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.digitss.com/database/mysql/top-free-open-source-tools-for-mysql-development-administration/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.020 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-08-13 12:39:10 -->

