Bugs in MySQL and how to fix them

Source: Internet
Author: User

1.Change Password hint ERROR 1054 (42S22): Unknown column ' Password ' in ' Field List '

Cause of Error:There is no password this field under the MySQL database, and the password field has been changed to authentication_string. Workaround:
  •        Find the My.ini configuration file from the MySQL decompression path, remove the skip-grant-tables comment from it, and if you don't add it to yourself (usually),

  • Execute the following command at the MySQL command line (password changes to your own password):
    mysql>  Update mysql.user set Authentication_string=password (' PASSWORD ') where user= ' root ';

    The result is this:

    Query OK, 1 row affected, 1 warning (0.15 sec) Rows matched:1  changed:1  warnings:1

      

  • After running back to the MySQL decompression path, the My.ini configuration file in the Skip-grant-tables again commented out (add a # in front of the line)
  • Finally, restart MySQL.
  • Ok

Bugs in MySQL and how to fix them

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.