Skip navigation.
Home
That which cannot be rendered in binary is by definition a delusion
 

Pulling the bullet out of your feet with a bad mysql install

How to back out of a crappy install where you enter a wrong password in mysql and can't figure it out.

  1. read /etc/mysql/debian.cnf. It will have the username and password of a valid mysql user.
  2. Log into mysql with that user/pw.
  3. http://www.cyberciti.biz/faq/mysql-change-root-password/ trick:
  4. use mysql;
    update user set password=PASSWORD("NEWPASSWORD") where User='root';
    flush privileges;
    quit;
  5. Test your new password to regain confidence in your own brain.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <p> <span><small> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <param> <strike> <caption>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options