많은 패스워드를 가지고 있다보니,
별로 중요하지 않은 것은 자주 잊어버린다.

다음에 사용해야지 하고 기억하지 않았는데, 기억이 나질 않는다..ㅡㅡ;;;

그래서 리셋..ㅡㅡ;;;

  1. Stop the MySQL Server.
    sudo /etc/init.d/mysql stop

  2. Start the mysqld configuration.
    sudo mysqld --skip-grant-tables &

  3. Login to MySQL as root.
    mysql -u root mysql

  4. Replace YOURNEWPASSWORD with your new password!
    UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
출처: http://ubuntu.flowconsult.at/en/mysql-set-change-reset-root-password/


Posted by 노을지기