<?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>Croc-Informatique.fr &#187; Base de donnée</title>
	<atom:link href="http://www.croc-informatique.fr/category/base-de-donnee/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.croc-informatique.fr</link>
	<description>Le Blog Note d'Olivier Legras</description>
	<lastBuildDate>Wed, 18 Jan 2012 16:29:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>[MYSQL] Réinitialiser le mot de passe root</title>
		<link>http://www.croc-informatique.fr/2010/06/mysql-rinitialiser-le-mot-de-passe-root/</link>
		<comments>http://www.croc-informatique.fr/2010/06/mysql-rinitialiser-le-mot-de-passe-root/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 10:07:11 +0000</pubDate>
		<dc:creator>Olivier Legras</dc:creator>
				<category><![CDATA[Base de donnée]]></category>
		<category><![CDATA[mot de passe]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[reinitialiser]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2010/06/mysql-rinitialiser-le-mot-de-passe-root/</guid>
		<description><![CDATA[Vous avez perdu le mot de passe “root” de votre serveur Mysql. Heureusement, Mysql a prévu une solution. Il suffi de démarrer le service en mode “secours”. Dans ce mode, vous n’avez pas besoin de vous authentifier. Voici la procédure vous permettant de réinitialiser le mot de passe “root” : &#160; Arrêter le service mysqld [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Vous avez perdu le mot de passe “root” de votre serveur Mysql. Heureusement, Mysql a prévu une solution. Il suffi de démarrer le service en mode “secours”. Dans ce mode, vous n’avez pas besoin de vous authentifier. Voici la procédure vous permettant de réinitialiser le mot de passe “root” :</p>
<p>&nbsp;</p>
<p>Arrêter le service mysqld :</p>
<blockquote><p>#/etc/init.d/mysql stop</p></blockquote>
<p>Lancer mysqld en mode secours :</p>
<blockquote><p>#mysqld &#8211;skip-grant-tables &#8211;skip-networking &amp;</p></blockquote>
<p><span id="more-497"></span></p>
<p>Se connecter en root :</p>
<blockquote><p># mysql mysql -u root</p></blockquote>
<p>Remplacer le mot de passe root :</p>
<blockquote><p>UPDATE user SET password=PASSWORD(&#8216;nouveaumotdepasse&#8217;) WHERE user=&nbsp;&raquo;root&nbsp;&raquo;;</p></blockquote>
<p>Prendre en compte les changements :</p>
<blockquote><p>FLUSH PRIVILEGES;</p></blockquote>
<p>Redemarrer Mysql :</p>
<blockquote><p>#/etc/init.d/mysql restart</p></blockquote>
<div class="shr-publisher-497"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F06%2Fmysql-rinitialiser-le-mot-de-passe-root%2F' data-shr_title='%5BMYSQL%5D+R%C3%A9initialiser+le+mot+de+passe+root'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2010%2F06%2Fmysql-rinitialiser-le-mot-de-passe-root%2F' data-shr_title='%5BMYSQL%5D+R%C3%A9initialiser+le+mot+de+passe+root'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2010/06/mysql-rinitialiser-le-mot-de-passe-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faire un insert en fonction d’un select sur mysql</title>
		<link>http://www.croc-informatique.fr/2009/07/faire-un-insert-en-fonction-dun-select-sur-mysql/</link>
		<comments>http://www.croc-informatique.fr/2009/07/faire-un-insert-en-fonction-dun-select-sur-mysql/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 15:46:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Base de donnée]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/07/faire-un-insert-en-fonction-dun-select-sur-mysql/</guid>
		<description><![CDATA[Voici la requête : INSERT INTO nom_table (champ1,champ2,champ3) SELECT champ1,58,55 FROM nom_table WHERE champ2= &#8217;8&#8242;; 58 et 55 correspondent aux champ2 et 3. ce sont des constantes. En gros, nous insérons dans le champ1 le résultat du select et dans le champ2 et 3, nous insérons les valeurs respective 58 et 55.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Voici la requête :</p>
<blockquote><p>INSERT INTO nom_table (champ1,champ2,champ3) SELECT champ1,58,55 FROM nom_table WHERE champ2= &#8217;8&#8242;;</p>
</blockquote>
<p>58 et 55 correspondent aux champ2 et 3. ce sont des constantes.</p>
<p>En gros, nous insérons dans le champ1 le résultat du select et dans le champ2 et 3, nous insérons les valeurs respective 58 et 55.</p>
<div class="shr-publisher-401"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F07%2Ffaire-un-insert-en-fonction-dun-select-sur-mysql%2F' data-shr_title='Faire+un+insert+en+fonction+d%E2%80%99un+select+sur+mysql'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F07%2Ffaire-un-insert-en-fonction-dun-select-sur-mysql%2F' data-shr_title='Faire+un+insert+en+fonction+d%E2%80%99un+select+sur+mysql'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/07/faire-un-insert-en-fonction-dun-select-sur-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visualiser les connexions en cours sur Mysql</title>
		<link>http://www.croc-informatique.fr/2009/03/visualiser-les-connexions-en-cours-sur-mysql/</link>
		<comments>http://www.croc-informatique.fr/2009/03/visualiser-les-connexions-en-cours-sur-mysql/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 13:37:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Base de donnée]]></category>
		<category><![CDATA[connexions]]></category>
		<category><![CDATA[too many connection]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/03/visualiser-les-connexions-en-cours-sur-mysql/</guid>
		<description><![CDATA[Connectez-vous avec le client mysql en ligne de commande et tapez : SHOW PROCESS-LIST Cette commande est utile lorsque vous avez l’erreur “Too many connection”]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Connectez-vous avec le client mysql en ligne de commande et tapez :</p>
<blockquote><p>SHOW PROCESS-LIST</p>
</blockquote>
<p>Cette commande est utile lorsque vous avez l’erreur “Too many connection”</p>
<div class="shr-publisher-194"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F03%2Fvisualiser-les-connexions-en-cours-sur-mysql%2F' data-shr_title='Visualiser+les+connexions+en+cours+sur+Mysql'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F03%2Fvisualiser-les-connexions-en-cours-sur-mysql%2F' data-shr_title='Visualiser+les+connexions+en+cours+sur+Mysql'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/03/visualiser-les-connexions-en-cours-sur-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Afficher le schéma d’une base SQLite en Perl</title>
		<link>http://www.croc-informatique.fr/2009/01/afficher-le-schma-dune-base-sqlite-en-perl/</link>
		<comments>http://www.croc-informatique.fr/2009/01/afficher-le-schma-dune-base-sqlite-en-perl/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 09:02:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Base de donnée]]></category>
		<category><![CDATA[Programmation]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/01/afficher-le-schma-dune-base-sqlite-en-perl/</guid>
		<description><![CDATA[#!/usr/bin/perl use strict; use DBI; #Définition des arguments de connexion my $dbargs = {AutoCommit =&#62; 0, PrintError =&#62; 1}; #Connexion à la base SQLite my $dbh1 = DBI-&#62;connect(&#171;&#160;dbi:SQLite2:dbname=/chemin/db&#160;&#187;,&#160;&#187;",&#160;&#187;",$dbargs); #Affichage du message d&#8217;erreur si c&#8217;est le cas if ($dbh1-&#62;err()) { die &#171;&#160;$DBI::errstr\n&#160;&#187;; } #Préparation de la requête my $sSql= &#171;&#160;SELECT * FROM SQLITE_MASTER&#160;&#187;; my $statement = [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><blockquote><p>#!/usr/bin/perl<br />
use strict;<br />
use DBI;</p>
<p>#Définition des arguments de connexion<br />
my $dbargs = {AutoCommit =&gt; 0,<br />
PrintError =&gt; 1};</p>
<p>#Connexion à la base SQLite<br />
my $dbh1 = DBI-&gt;connect(&laquo;&nbsp;dbi:SQLite2:dbname=/chemin/db&nbsp;&raquo;,&nbsp;&raquo;",&nbsp;&raquo;",$dbargs);</p>
<p>#Affichage du message d&#8217;erreur si c&#8217;est le cas<br />
if ($dbh1-&gt;err()) { die &laquo;&nbsp;$DBI::errstr\n&nbsp;&raquo;; }</p>
<p>#Préparation de la requête<br />
my $sSql= &laquo;&nbsp;SELECT * FROM SQLITE_MASTER&nbsp;&raquo;;<br />
my $statement = $dbh1-&gt;prepare($sSql);</p>
<p>#Exécution de la requête<br />
$statement-&gt;execute();</p>
<p>#Affichage du résultat<br />
while (my $row = $statement-&gt;fetchrow_arrayref) {<br />
print join(&laquo;&nbsp;\t&nbsp;&raquo;, @$row), &laquo;&nbsp;\n&nbsp;&raquo;;<br />
}</p>
<p><span id="more-165"></span></p>
<p>#Déconnexion<br />
$dbh1-&gt;disconnect();</p></blockquote>
<div class="shr-publisher-165"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F01%2Fafficher-le-schma-dune-base-sqlite-en-perl%2F' data-shr_title='Afficher+le+sch%C3%A9ma+d%E2%80%99une+base+SQLite+en+Perl'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F01%2Fafficher-le-schma-dune-base-sqlite-en-perl%2F' data-shr_title='Afficher+le+sch%C3%A9ma+d%E2%80%99une+base+SQLite+en+Perl'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/01/afficher-le-schma-dune-base-sqlite-en-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql : Got a packet bigger than &#8216;max_allowed_packet&#8217;</title>
		<link>http://www.croc-informatique.fr/2008/05/mysql-got-a-packet-bigger-than-max_allowed_packet/</link>
		<comments>http://www.croc-informatique.fr/2008/05/mysql-got-a-packet-bigger-than-max_allowed_packet/#comments</comments>
		<pubDate>Tue, 27 May 2008 15:02:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Base de donnée]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2008/05/mysql-got-a-packet-bigger-than-max_allowed_packet/</guid>
		<description><![CDATA[Lorsque l&#8217;on a l&#8217;erreur : Got a packet bigger than &#8216;max_allowed_packet&#8217; il faut ajouter dans le fichier /etc/my.cnf, dans la section [mysqld]&#160; la ligne : max_allowed_packet=100M]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Lorsque l&#8217;on a l&#8217;erreur : Got a packet bigger than &#8216;max_allowed_packet&#8217;</p>
<p>il faut ajouter dans le fichier /etc/my.cnf, dans la section [mysqld]&#160; la ligne :</p>
<blockquote><p>max_allowed_packet=100M</p>
</blockquote>
<div class="shr-publisher-83"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F05%2Fmysql-got-a-packet-bigger-than-max_allowed_packet%2F' data-shr_title='Mysql+%3A+Got+a+packet+bigger+than+%27max_allowed_packet%27'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F05%2Fmysql-got-a-packet-bigger-than-max_allowed_packet%2F' data-shr_title='Mysql+%3A+Got+a+packet+bigger+than+%27max_allowed_packet%27'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2008/05/mysql-got-a-packet-bigger-than-max_allowed_packet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Freeware administration mysql</title>
		<link>http://www.croc-informatique.fr/2008/05/freeware-administration-mysql/</link>
		<comments>http://www.croc-informatique.fr/2008/05/freeware-administration-mysql/#comments</comments>
		<pubDate>Mon, 26 May 2008 08:18:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Base de donnée]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2008/05/freeware-administration-mysql/</guid>
		<description><![CDATA[Il existe plusieurs moyen d&#8217;administrer une base ou un serveur mysql. Le plus connu est phpmyadmin qui permet &#224; partir d&#8217;un serveur web d&#8217;administrer sa base mysql ( Gestion des comptes utilisateurs, cr&#233;ation de base&#8230;) &#160; Il existe aussi quelques client lourd qui effectuent les m&#234;mes op&#233;ration voir plus tel que toad for mysql et [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Il existe plusieurs moyen d&#8217;administrer une base ou un serveur mysql. Le plus connu est phpmyadmin qui permet &#224; partir d&#8217;un serveur web d&#8217;administrer sa base mysql ( Gestion des comptes utilisateurs, cr&#233;ation de base&#8230;)</p>
<p>&#160;</p>
<p>Il existe aussi quelques client lourd qui effectuent les m&#234;mes op&#233;ration voir plus tel que toad for mysql et SQLyog.</p>
<p>&#160;</p>
<p>Toad for mysql est t&#233;l&#233;chargeable &#224; cet emplacement : <a title="http://www.toadsoft.com/toadmysql/FreewareDownload.htm" href="http://www.toadsoft.com/toadmysql/FreewareDownload.htm">http://www.toadsoft.com/toadmysql/FreewareDownload.htm</a></p>
<p>En case de probl&#232;me, vous pouvez aller sur ce site : <a title="http://www.toadworld.com/" href="http://www.toadworld.com/">http://www.toadworld.com/</a></p>
<p><span id="more-81"></span></p>
<p>SQLyog : </p>
<p>Site officiel : <a title="http://www.webyog.com/en/" href="http://www.webyog.com/en/">http://www.webyog.com/en/</a></p>
<p>T&#233;l&#233;chargement : <a title="http://www.clubic.com/telecharger-fiche10963-sqlyog.html" href="http://www.clubic.com/telecharger-fiche10963-sqlyog.html">http://www.clubic.com/telecharger-fiche10963-sqlyog.html</a></p>
<div class="shr-publisher-81"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F05%2Ffreeware-administration-mysql%2F' data-shr_title='Freeware+administration+mysql'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F05%2Ffreeware-administration-mysql%2F' data-shr_title='Freeware+administration+mysql'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2008/05/freeware-administration-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Impossible de se connecter en local avec un mot de passe sur mysql</title>
		<link>http://www.croc-informatique.fr/2008/04/impossible-de-se-connecter-en-local-avec-un-mot-de-passe-sur-mysql/</link>
		<comments>http://www.croc-informatique.fr/2008/04/impossible-de-se-connecter-en-local-avec-un-mot-de-passe-sur-mysql/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 11:07:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Base de donnée]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://o.legras.free.fr/wordpress/?p=65</guid>
		<description><![CDATA[Il faut v&#233;rifier que dans le fichier de configuration de mysql /etc/my.cnf old_passwords soit &#224; 0 : old_passwords=0]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Il faut v&#233;rifier que dans le fichier de configuration de mysql /etc/my.cnf old_passwords soit &#224; 0 :</p>
<blockquote><p>old_passwords=0</p>
</blockquote>
<div class="shr-publisher-65"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F04%2Fimpossible-de-se-connecter-en-local-avec-un-mot-de-passe-sur-mysql%2F' data-shr_title='Impossible+de+se+connecter+en+local+avec+un+mot+de+passe+sur+mysql'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F04%2Fimpossible-de-se-connecter-en-local-avec-un-mot-de-passe-sur-mysql%2F' data-shr_title='Impossible+de+se+connecter+en+local+avec+un+mot+de+passe+sur+mysql'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2008/04/impossible-de-se-connecter-en-local-avec-un-mot-de-passe-sur-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql</title>
		<link>http://www.croc-informatique.fr/2008/04/mysql/</link>
		<comments>http://www.croc-informatique.fr/2008/04/mysql/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 06:31:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Base de donnée]]></category>

		<guid isPermaLink="false">http://o.legras.free.fr/wordpress/?p=64</guid>
		<description><![CDATA[Connexion &#224; mysql : mysql -h localhost -p -u root Hostname&#160; -h hostname&#8211;host=hostname&#160;&#160; localhost Username&#160; -u username&#8211;user=username&#160;&#160; Your login name Password&#160; -p &#8211;password&#160; None Cr&#233;er une base : CREATE DATABASE nom_base Import : mysql -u user -p base_de_donnees &#60; fichier.sql Cr&#233;er user : Acc&#232;s &#224; toutes les bases : GRANT ALL ON * TO &#8216;user&#8217;@'localhost&#8217; [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Connexion &#224; mysql :</p>
<blockquote><p>mysql -h localhost -p -u root</p>
</blockquote>
<p>Hostname&#160; -h hostname&#8211;host=hostname&#160;&#160; localhost    <br />Username&#160; -u username&#8211;user=username&#160;&#160; Your login name     <br />Password&#160; -p &#8211;password&#160; None </p>
<p>Cr&#233;er une base :</p>
<blockquote><p>CREATE DATABASE nom_base</p>
</blockquote>
<p>Import :</p>
<blockquote><p>mysql -u user -p base_de_donnees &lt; fichier.sql</p>
<p><span id="more-64"></span></p>
</blockquote>
<p>Cr&#233;er user :</p>
<p>Acc&#232;s &#224; toutes les bases :</p>
<blockquote><p>GRANT ALL ON * TO <a href="mailto:'user'@'localhost'">&#8216;user&#8217;@'localhost&#8217;</a> IDENTIFIED BY &#8216;mdp&#8217;; </p>
</blockquote>
<p>user = nom d&#8217;utilisateur</p>
<p>mdp = mot de passe</p>
<p>Acc&#232;s &#224; une base :</p>
<blockquote><p>GRANT ALL ON base.* TO <a href="mailto:'user'@'localhost'">&#8216;user&#8217;@'localhost&#8217;</a> IDENTIFIED BY &#8216;mdp&#8217;;</p>
</blockquote>
<p>.* signifie toutes les tables de la base</p>
<p>ALL signifie tous les privil&#232;ges.</p>
<p>Acc&#232;s seulement &#224; partir d&#8217;un sous-reseau :</p>
<blockquote><p>GRANT ALL ON base.* TO <a href="mailto:'user'@'192.168.26.%'">&#8216;user&#8217;@&#8217;192.168.26.%&#8217;</a> IDENTIFIED BY &#8216;mdp&#8217;;</p>
</blockquote>
<p>Voir les privil&#232;ges d&#8217;un utilisateurs :</p>
<blockquote><p>SHOW GRANTS FOR <a href="mailto:user@localhost">user@localhost</a></p>
</blockquote>
<p>Supprimer un utilisateur :</p>
<blockquote><p>DROP USER <em><code>user</code></em>;</p>
</blockquote>
<p>Changer mot de passe :</p>
<blockquote><p>SET PASSWORD FOR <a href="mailto:'user'@'localhost'">&#8216;user&#8217;@'localhost&#8217;</a> = PASSWORD(&#8216;<em><code>newpass</code></em>&#8216;);</p>
</blockquote>
<p>Renommer utilisateur :</p>
<blockquote><p>RENAME USER <em><code>old_user</code></em> TO <em><code>new_user</code></em></p>
</blockquote>
<p>Se placer dans une base de donn&#233;e :</p>
<blockquote><p>USE nom_base;</p>
</blockquote>
<p>Savoir dans quelle base nous sommes :</p>
<blockquote><p>SELECT DATABASE( );</p>
</blockquote>
<p>Lister toutes les bases :</p>
<blockquote><p>show databases;</p>
</blockquote>
<div class="shr-publisher-64"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F04%2Fmysql%2F' data-shr_title='Mysql'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F04%2Fmysql%2F' data-shr_title='Mysql'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2008/04/mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restaurer une base mysql</title>
		<link>http://www.croc-informatique.fr/2008/02/restaurer-une-base-mysql/</link>
		<comments>http://www.croc-informatique.fr/2008/02/restaurer-une-base-mysql/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 18:50:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Base de donnée]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://o.legras.free.fr/wordpress/?p=38</guid>
		<description><![CDATA[mysql -u user -p base_de_donnees &#60; fichier.sql]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>mysql -u user -p base_de_donnees &lt; fichier.sql</p>
<div class="shr-publisher-38"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F02%2Frestaurer-une-base-mysql%2F' data-shr_title='Restaurer+une+base+mysql'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2008%2F02%2Frestaurer-une-base-mysql%2F' data-shr_title='Restaurer+une+base+mysql'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2008/02/restaurer-une-base-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

