<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.digital-connexion.info/index.php/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Blog de Johan Denoyer - La vie et les nouvelles technologies - Balise - base de donnée</title>
  <link>http://www.digital-connexion.info/index.php/</link>
  <atom:link href="http://www.digital-connexion.info/index.php/feed/tag/base%20de%20donn%C3%A9e/rss2" rel="self" type="application/rss+xml"/>
  <description>Blog de Johan Denoyer dans lequel on discute de tout sur la vie, les nouvelles technologies, les communications, la radio, les r&amp;eacute;seaux et la s&amp;eacute;curit&amp;eacute;</description>
  <language>fr</language>
  <pubDate>Thu, 04 Dec 2008 13:51:25 +0100</pubDate>
  <copyright>(c) 2006-2008 - Johan Denoyer</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Comment changer un mot de passe Mysql oublié</title>
    <link>http://www.digital-connexion.info/index.php/post/2007/05/18/Comment-changer-un-mot-de-passe-Mysql-oublie</link>
    <guid isPermaLink="false">urn:md5:c0d75baa7601220c279b1dca4b7afccc</guid>
    <pubDate>Fri, 18 May 2007 20:45:00 +0200</pubDate>
    <dc:creator>jdenoy</dc:creator>
        <category>Articles</category>
        <category>base de donnée</category><category>db</category><category>mot de passe</category><category>mysql</category>    
    <description>&lt;p&gt;&lt;img src=&quot;http://www.digital-connexion.info/public/mysql_100x52-64.gif&quot; alt=&quot;Mysql Server&quot; style=&quot;float:left; margin: 0 1em 1em 0;&quot; /&gt;Ca peut arriver d'oublier le mot de passe
root de mysql, ou reprendre en main un serveur d'un ancien administrateur ayant
quitté l'entreprise un peut rapidement. Donc je vous présente ici comment
changer le mot de passe root d'un serveur mysql.&lt;/p&gt;    &lt;p&gt;Première chose, on arrête mysql :&lt;/p&gt;
&lt;pre&gt;
/etc/init.d/mysql stop
&lt;/pre&gt;
&lt;p&gt;Ensuite redémarrez mysql avec l'option skip-grant-tables pour désactiver les
logins/pass, et skip-networking pour éviter les connexions TCP/IP. Note :
attention lors de cette commande, n'importe quelle personne ce connectant à
l'aide des sockets aura un accès total à la base!!!&lt;/p&gt;
&lt;pre&gt;
/usr/sbin/mysqld --skip-grant-tables  --skip-networking --user=root &amp;amp;
&lt;/pre&gt;
&lt;p&gt;Ensuite connectez vous avec le client mysql&lt;/p&gt;
&lt;pre&gt;
mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 330933
Server version: 5.0.38

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql&amp;gt;'
&lt;/pre&gt;
&lt;p&gt;Sélectionnez la base mysql ou sont inscrit les tables des privilèges&lt;/p&gt;
&lt;pre&gt;
mysql&amp;gt; USE mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
&lt;/pre&gt;
&lt;p&gt;Tapez ensuite la commande suivante en remplaçant &amp;quot;password&amp;quot; par celui
souhaité :&lt;/p&gt;
&lt;pre&gt;

mysql&amp;gt; UPDATE user
    -&amp;gt; SET password=password(&amp;quot;password&amp;quot;)
    -&amp;gt; WHERE user=&amp;quot;root&amp;quot;;
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2  Changed: 2  Warnings: 0
&lt;/pre&gt;
&lt;p&gt;Appliquez les changements de privilèges :&lt;/p&gt;
&lt;pre&gt;
mysql&amp;gt; flush privileges;
Query OK, 0 rows affected (0.00 sec)
&lt;/pre&gt;
&lt;p&gt;Sortez du client mysql:&lt;/p&gt;
&lt;pre&gt;
mysql&amp;gt; exit
&lt;/pre&gt;
&lt;p&gt;Redémarrez le serveur :&lt;/p&gt;
&lt;pre&gt;
/etc/init.d/mysql restart
&lt;/pre&gt;</description>
    
    
    
          <comments>http://www.digital-connexion.info/index.php/post/2007/05/18/Comment-changer-un-mot-de-passe-Mysql-oublie#comment-form</comments>
      <wfw:comment>http://www.digital-connexion.info/index.php/post/2007/05/18/Comment-changer-un-mot-de-passe-Mysql-oublie#comment-form</wfw:comment>
      <wfw:commentRss>http://www.digital-connexion.info/index.php/feed/atom/comments/68</wfw:commentRss>
      </item>
    
</channel>
</rss>