MYSQLERROR1045 (28000) processing method _ MySQL

Source: Internet
Author: User
How to handle MYSQLERROR1045 (28000) bitsCN.com
During maintenance, one day a customer sent me a website saying that the connection could not be reached. then I checked that the database was too high, it is normal to delete some data, but it is also possible to delete some data without permissions. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ ERROR 1045 (28000): Access denied for user 'sq8xxxxx' @ 'locahost' (using password: YES) 1: open MYSQL Command Line Client in the beginning and enter your password [the one set during installation]
2: Enter "UPDATE mysql. user SET Password = OLD_PASSWORD ('password')" after mysql> ')
3: enter WHERE Host = 'localhost' AND User = 'username' at the prompt-> AND press enter to prompt: Query OK, 0 rows affected (0.16 sec) Rows matched: 0 Changed: 0 Warnings: 0 4: Enter: flush privileges after mysql>; press enter to prompt: Query OK, 0 rows affected (0.19 sec) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ Start the mysql service and log on to the mysql database. enter the command [root @ localhost root] #/usr/bin/mysql-u sq8xxxx-p * (according to the lniux version compatibility issue, -p: the password of the database administrator sq8xxxx (usually the password)-p: specifies the name of the database to be used, and then Enter password: enter the database password (redhat 9.0) in redhat 9.0. if you enter the database administrator's root password directly, the error 1045 will occur. the verification is stopped because the method provided above is troublesome during use. In fact, there is still a question about version compatibility. You can use myisamchk and service mysqld start in 9.0. Author: zhangzhengxingbitsCN.com

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.