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.
CAPTCHA
2 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.