Si, se que esta en mil sitios pero es que como uno es un poco torpe tengo que tenerlo a mano ;)

[code language="shell"]

/etc/init.d/mysql stop<

mysqld_safe --skip-grant-tables &

mysql -u root

[/code]

mysql> use mysql;
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit

[code language="shell"]

/etc/init.d/mysql restart

[/code]

Caregorias

Tags

  • mysql

Add new comment

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.