<?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>GeeK`s Lifez &#187; MySQL</title>
	<atom:link href="http://blog.cannibalz.net/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cannibalz.net</link>
	<description>GeeK`s Lifez</description>
	<lastBuildDate>Mon, 16 Jan 2012 21:00:04 +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>How to know the size of Mysql&#8217;s databases</title>
		<link>http://blog.cannibalz.net/2010/10/02/how-to-know-the-size-of-mysqls-databases/</link>
		<comments>http://blog.cannibalz.net/2010/10/02/how-to-know-the-size-of-mysqls-databases/#comments</comments>
		<pubDate>Sat, 02 Oct 2010 16:23:26 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/?p=104</guid>
		<description><![CDATA[This is a little command which permit to know the size of all your mysql's databases: First connect you to your mysql server as root: # mysql - u root -p Then use the following request: mysql&#62; select table_schema as BDD,round(sum(data_length+index_length)/1024/1024,2) as 'Size(MB)' from information_schema.tables group by table_schema; +---------------------+----------+ &#124; BDD         [...]]]></description>
			<content:encoded><![CDATA[<p>This is a little command which permit to know the size of all your mysql's databases:</p>
<p>First connect you to your mysql server as root:</p>
<blockquote><p># mysql - u root -p</p></blockquote>
<p>Then use the following request:</p>
<blockquote>
<div id="_mcePaste">mysql&gt; select table_schema as BDD,round(sum(data_length+index_length)/1024/1024,2) as 'Size(MB)' from information_schema.tables group by table_schema;</div>
<div id="_mcePaste">+---------------------+----------+</div>
<div id="_mcePaste">| BDD                 | Size(MB) |</div>
<div id="_mcePaste">+---------------------+----------+</div>
<div id="_mcePaste">| database1  |    24.88 |</div>
<div id="_mcePaste">| information_schema  |     0.00 |</div>
<div id="_mcePaste">| mysql               |     0.51 |</div>
<div id="_mcePaste">+---------------------+----------+</div>
<div id="_mcePaste">3 rows in set (0.30 sec)</div>
</blockquote>
<div>This command could be usefull when you want to prevent mysql's backup size.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2010/10/02/how-to-know-the-size-of-mysqls-databases/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MySQL root password reinitialisation ?</title>
		<link>http://blog.cannibalz.net/2008/03/27/mysql-root-password-perdu/</link>
		<comments>http://blog.cannibalz.net/2008/03/27/mysql-root-password-perdu/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 14:48:38 +0000</pubDate>
		<dc:creator>JaCe</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Password]]></category>

		<guid isPermaLink="false">http://blog.cannibalz.net/2008/03/27/mysql-root-password-perdu/</guid>
		<description><![CDATA[Qui n'a jamais eu besoin de pouvoir changer son mot de passe root sans connaître le mot de passe initiale.. Voici comment faire: #/etc/init.d/mysql stop Après on démarre MySQL sans mot de passe # mysqld_safe --skip-grant-tables &#38; On se connecte à MySQL en root sans mot de pass # mysql -u root Vous devriez avoir [...]]]></description>
			<content:encoded><![CDATA[<p>Qui n'a jamais eu besoin de pouvoir changer son mot de passe root sans connaître le mot de passe initiale..</p>
<p><span id="more-33"></span><br />
Voici comment faire:</p>
<ul>
<li>#/etc/init.d/mysql stop</li>
</ul>
<p>Après on démarre MySQL sans mot de passe</p>
<ul>
<li># <code>mysqld_safe --skip-grant-tables &amp;</code></li>
</ul>
<p>On se connecte à MySQL en root sans mot de pass</p>
<ul>
<li># mysql -u root</li>
</ul>
<p>Vous devriez avoir cela:</p>
<blockquote><p>mysql&gt;</p></blockquote>
<p>Maintenant on va mettre un nouveau mot de pass root sur votre base de données:</p>
<blockquote><p>mysql&gt; use mysql;</p>
<p>mysql&gt; update user set password=PASSWORD(”newrootpassword”) where user=’root’;</p>
<p>mysql&gt; flush privileges;</p>
<p>mysql&gt; quit</p></blockquote>
<p>Puis vous arrêtez votre serveur MySQL</p>
<ul>
<li># /etc/init.d/mysql stop</li>
</ul>
<p>Vous le redémarrez:</p>
<ul>
<li># /etc/init.d/mysql start</li>
</ul>
<p>Et vous essayez votre nouveau mot de passe root mit précédemment:</p>
<ul>
<li># mysql -u root -p</li>
</ul>
<p>Mysql va vous demander un mot de passe, tapez le mot de passe mit précédemment :)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cannibalz.net/2008/03/27/mysql-root-password-perdu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

