<?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>Linux T&#38;T &#187; Mysql</title>
	<atom:link href="http://linux.wxs.ro/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux.wxs.ro</link>
	<description>WladyX’s collection of linux tips&#38;tricks</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:42:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Reducing ibdata1 in mysql</title>
		<link>http://linux.wxs.ro/2012/01/23/reducing-ibdata1-in-mysql/</link>
		<comments>http://linux.wxs.ro/2012/01/23/reducing-ibdata1-in-mysql/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 13:00:00 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1828</guid>
		<description><![CDATA[/etc/mysql/my.cnf: innodb_file_per_table Dump all databases by calling: /usr/bin/mysqldump --extended-insert --all-databases --add-drop-database --disable-keys --flush-privileges --quick --routines --triggers &#62; all-databases.sql Stop the MySQL server; Rename or remove (in case you’ve already backed it up) the MySQL data directory and create an empty one with the same name and permissions; Make the appropriate changes in my.cnf; Re-initialize the [...]]]></description>
			<content:encoded><![CDATA[<p>/etc/mysql/my.cnf:<br />
innodb_file_per_table</p>
<p>Dump all databases by calling:</p>
<p><code>/usr/bin/mysqldump --extended-insert --all-databases --add-drop-database --disable-keys --flush-privileges --quick --routines --triggers &gt; all-databases.sql</code></p>
<p>Stop the MySQL server;<br />
Rename or remove (in case you’ve already backed it up) the MySQL data directory and create an empty one with the same name and permissions;<br />
Make the appropriate changes in my.cnf;<br />
Re-initialize the database with the following command (replace the ‘mysqld‘ with the login of the user your MySQL server runs as) (10x, Påven):</p>
<p><code>sudo -u mysqld mysql_install_db</code></p>
<p>Start the MySQL server;<br />
Get into the ‘mysql‘ console and type:</p>
<p>SET FOREIGN_KEY_CHECKS=0;<br />
SOURCE all-databases.sql;<br />
SET FOREIGN_KEY_CHECKS=1;</p>
<p>Restart the MySQL server. (10x, czaby)</p>
<p>At this point everything should be fine and you can test it by starting again the services that use MySQL.</p>
<p><a href="http://blogs.thescallop.com/zhouxiuhu/?p=209">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2012/01/23/reducing-ibdata1-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strange character appearances in old posts (after db restore)</title>
		<link>http://linux.wxs.ro/2011/12/29/strange-character-appearances-in-old-posts-after-db-restore/</link>
		<comments>http://linux.wxs.ro/2011/12/29/strange-character-appearances-in-old-posts-after-db-restore/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 12:20:29 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1788</guid>
		<description><![CDATA[wp-config.php: define('DB_CHARSET', 'utf8'); source]]></description>
			<content:encoded><![CDATA[<p>wp-config.php:<br />
<code>define('DB_CHARSET', 'utf8'); </code></p>
<p><a href="http://wordpress.org/support/topic/strange-character-appearances-in-old-posts-after-db-restore">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/12/29/strange-character-appearances-in-old-posts-after-db-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Export the privileges from MySQL and then import to a new server</title>
		<link>http://linux.wxs.ro/2011/12/29/export-the-privileges-from-mysql-and-then-import-to-a-new-server/</link>
		<comments>http://linux.wxs.ro/2011/12/29/export-the-privileges-from-mysql-and-then-import-to-a-new-server/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 12:19:01 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1785</guid>
		<description><![CDATA[.bashrc: mygrants() { mysql -B -N $@ -e "SELECT DISTINCT CONCAT( 'SHOW GRANTS FOR ''', user, '''@''', host, ''';' ) AS query FROM mysql.user" &#124; \ mysql $@ &#124; \ sed 's/\(GRANT .*\)/\1;/;s/^\(Grants for .*\)/## \1 ##/;/##/{x;p;x;}' } mygrants --host=prod-db1 --user=admin --password=secret &#124; grep rails_admin &#124; mysql --host=staging-db1 --user=admin --password=secret mygrants --password=xxx&#62; /mysql.grant source]]></description>
			<content:encoded><![CDATA[<p>.bashrc:<br />
<code>mygrants()<br />
{<br />
mysql -B -N $@ -e "SELECT DISTINCT CONCAT(<br />
'SHOW GRANTS FOR ''', user, '''@''', host, ''';'<br />
) AS query FROM mysql.user" | \<br />
mysql $@ | \<br />
sed 's/\(GRANT .*\)/\1;/;s/^\(Grants for .*\)/## \1 ##/;/##/{x;p;x;}'<br />
}</code></p>
<p><code>mygrants --host=prod-db1 --user=admin --password=secret | grep rails_admin | mysql --host=staging-db1 --user=admin --password=secret</code><br />
<code>mygrants --password=xxx&gt; /mysql.grant</code></p>
<p><a href="http://serverfault.com/questions/8860/how-can-i-export-the-privileges-from-mysql-and-then-import-to-a-new-server">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/12/29/export-the-privileges-from-mysql-and-then-import-to-a-new-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DBeaver &#8211; free universal database tool</title>
		<link>http://linux.wxs.ro/2011/09/29/dbeaver-free-universal-database-tool/</link>
		<comments>http://linux.wxs.ro/2011/09/29/dbeaver-free-universal-database-tool/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 09:34:22 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Cool Apps]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1628</guid>
		<description><![CDATA[Supported (tested) databases: MySQL Oracle PostgreSQL IBM DB2 Microsoft SQL Server Sybase ODBC Java DB (Derby) Firebird (Interbase) HSQLDB SQLite Mimer H2 IBM Informix SAP MAX DB Cache Ingres Linter Any JDBC compliant data source download]]></description>
			<content:encoded><![CDATA[<h3>Supported (tested) databases:</h3>
<ul>
<li>MySQL</li>
<li>Oracle</li>
<li>PostgreSQL</li>
<li>IBM DB2</li>
<li>Microsoft SQL Server</li>
<li>Sybase</li>
<li>ODBC</li>
<li>Java DB (Derby)</li>
<li>Firebird (Interbase)</li>
<li>HSQLDB</li>
<li>SQLite</li>
<li>Mimer</li>
<li>H2</li>
<li>IBM Informix</li>
<li>SAP MAX DB</li>
<li>Cache</li>
<li>Ingres</li>
<li>Linter</li>
<li>Any JDBC compliant data source</li>
</ul>
<p><a href="http://dbeaver.jkiss.org/download/">download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/09/29/dbeaver-free-universal-database-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wildcard &#8211; Grant Permissions To A Set Of Databases Matching A Pattern In MysQL</title>
		<link>http://linux.wxs.ro/2011/07/22/wildcard-grant-permissions-to-a-set-of-databases-matching-a-pattern-in-mysql/</link>
		<comments>http://linux.wxs.ro/2011/07/22/wildcard-grant-permissions-to-a-set-of-databases-matching-a-pattern-in-mysql/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 10:30:01 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1535</guid>
		<description><![CDATA[GRANT ALL PRIVILEGES ON `database_%` . * TO 'user'@'localhost' WITH GRANT OPTION ;]]></description>
			<content:encoded><![CDATA[<p><code>GRANT ALL PRIVILEGES ON `database_%` . * TO 'user'@'localhost' WITH GRANT OPTION ;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2011/07/22/wildcard-grant-permissions-to-a-set-of-databases-matching-a-pattern-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Duplicate mysql database</title>
		<link>http://linux.wxs.ro/2010/11/25/duplicate-mysql-database/</link>
		<comments>http://linux.wxs.ro/2010/11/25/duplicate-mysql-database/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 11:32:16 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1192</guid>
		<description><![CDATA[$ mysqldump -u root -p dbname &#62;~/db_name.sql $ mysql -u root -pmypassword Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 812 Server version: 5.1.20-beta-log FreeBSD port: mysql-server-5.1.20 Type &#8216;help;&#8217; or &#8216;h&#8217; for help. Type &#8216;c&#8217; to clear the buffer. mysql&#62; create database dbname_copy mysql&#62; use dbname_copy mysql&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><code>$ mysqldump -u root -p dbname &gt;~/db_name.sql<br />
</code></p>
<p><code>$ mysql -u root -pmypassword<br />
Welcome to the MySQL monitor. Commands end with ; or g.<br />
Your MySQL connection id is 812<br />
Server version: 5.1.20-beta-log FreeBSD port: mysql-server-5.1.20</code></p>
<p>Type &#8216;help;&#8217; or &#8216;h&#8217; for help. Type &#8216;c&#8217; to clear the buffer.</p>
<p>mysql&gt; create database dbname_copy<br />
mysql&gt; use dbname_copy<br />
mysql&gt; source ~/db_name.sql</p>
<p><a href="http://www.ivorde.ro/How_to_copy_a_mysql_database_using_mysqldump-22.html">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2010/11/25/duplicate-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using mysqldump to Back Up Your MySQL Database</title>
		<link>http://linux.wxs.ro/2010/09/30/using-mysqldump-to-back-up-your-mysql-database/</link>
		<comments>http://linux.wxs.ro/2010/09/30/using-mysqldump-to-back-up-your-mysql-database/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 13:44:56 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/?p=1033</guid>
		<description><![CDATA[mysqldump -u root -p --all-databases &#62; backup092210.sql source]]></description>
			<content:encoded><![CDATA[<p><code>mysqldump -u root -p --all-databases &gt; backup092210.sql</code></p>
<p><a href="http://www.databasejournal.com/features/mysql/article.php/3905786/article.htm">source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2010/09/30/using-mysqldump-to-back-up-your-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Mysql Commands</title>
		<link>http://linux.wxs.ro/2009/11/06/useful-mysql-commands/</link>
		<comments>http://linux.wxs.ro/2009/11/06/useful-mysql-commands/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 08:04:05 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/2009/11/06/useful-mysql-commands/</guid>
		<description><![CDATA[Gentoo Blog » Useful Mysql Commands]]></description>
			<content:encoded><![CDATA[<p><a href="http://gentoo-blog.de/stuff/useful-mysql-commands/">Gentoo Blog » Useful Mysql Commands</a><br />
<blockquote></blockquote>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=1e2c6a8f-ca24-8993-9f08-e8d5a91f4396" /></div>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2009/11/06/useful-mysql-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iRedMail: Build A Full-Featured Mail Server With LDAP, Postfix, RoundCube, Dovecot, ClamAV, DKIM, SPF On CentOS 5.x</title>
		<link>http://linux.wxs.ro/2009/04/15/iredmail-build-a-full-featured-mail-server-with-ldap-postfix-roundcube-dovecot-clamav-dkim-spf-on-centos-5x/</link>
		<comments>http://linux.wxs.ro/2009/04/15/iredmail-build-a-full-featured-mail-server-with-ldap-postfix-roundcube-dovecot-clamav-dkim-spf-on-centos-5x/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 10:58:40 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/2009/04/15/iredmail-build-a-full-featured-mail-server-with-ldap-postfix-roundcube-dovecot-clamav-dkim-spf-on-centos-5x/</guid>
		<description><![CDATA[iRedMail: Build A Full-Featured Mail Server With LDAP, Postfix, RoundCube, Dovecot, ClamAV, DKIM, SPF On CentOS 5.x &#124; HowtoForge &#8211; Linux Howtos and Tutorials]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.howtoforge.com/iredmail-build-a-full-featured-mail-server-with-ldap-postfix-roundcube-dovecot-clamav-dkim-spf-on-centos-5.x">iRedMail: Build A Full-Featured Mail Server With LDAP, Postfix, RoundCube, Dovecot, ClamAV, DKIM, SPF On CentOS 5.x | HowtoForge &#8211; Linux Howtos and Tutorials</a><br />
<blockquote></blockquote>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=2a86728f-6312-8736-bec3-3ae52088bf37" /></div>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2009/04/15/iredmail-build-a-full-featured-mail-server-with-ldap-postfix-roundcube-dovecot-clamav-dkim-spf-on-centos-5x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert WordPress database from Latin1 to UTF-8</title>
		<link>http://linux.wxs.ro/2008/06/30/convert-wordpress-database-from-latin1-to-utf-8/</link>
		<comments>http://linux.wxs.ro/2008/06/30/convert-wordpress-database-from-latin1-to-utf-8/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 10:04:49 +0000</pubDate>
		<dc:creator>WladyX</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://linux.wxs.ro/2008/06/30/convert-wordpress-database-from-latin1-to-utf-8/</guid>
		<description><![CDATA[$ mysqldump &#8211;default-character-set=latin1 &#8211;databases wordpress &#62; m.sql $ replace &#8220;CHARSET=latin1&#8243; &#8220;CHARSET=utf8&#8243; \ &#8220;SET NAMES latin1&#8243; &#8220;SET NAMES utf8&#8243; &#60; m.sql &#62; m2.sql $ mysql &#60; m2.sql wp-config.php:define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8242;);define(&#8216;DB_COLLATE&#8217;, &#8221;); atppp’s Blog » Convert WordPress database from Latin1 to UTF-8]]></description>
			<content:encoded><![CDATA[<p>$ mysqldump &#8211;default-character-set=latin1 &#8211;databases wordpress &gt; m.sql</p>
<p>$ replace &#8220;CHARSET=latin1&#8243; &#8220;CHARSET=utf8&#8243; \<br />    &#8220;SET NAMES latin1&#8243; &#8220;SET NAMES utf8&#8243; &lt; m.sql &gt; m2.sql</p>
<p>$ mysql &lt; m2.sql</p>
<p>wp-config.php:<br />define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8242;);<br />define(&#8216;DB_COLLATE&#8217;, &#8221;);</p>
<p><a href="http://blog.wuxinan.net/archives/255">atppp’s Blog » Convert WordPress database from Latin1 to UTF-8</a><br />
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://linux.wxs.ro/2008/06/30/convert-wordpress-database-from-latin1-to-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

