MySQL ERROR 1045 (28000): Workaround for the Access denied for user

Source: Internet
Author: User

Problem Description:

The following error appears when you connect the 10.240.210.188 database remotely on 10.240.210.60 today

MySQL ERROR 1045 (28000): Access denied for user

After searching the internet, it is because 10.240.210.188 did not give 10.240.210.60 this machine to give the connection permission caused.

"Solution"

  1. On the 10.240.210.188 connected to MySQL

    [Email protected] ~]# Mysql-uroot-ppassword

  2. Give 10.240.210.60 connection permissions

    1) View permission information

    Mysql> Show grants;
    +-------------------------------------------------------------------------------------------------------------- --------------------------+
    |                                                                                                              Grants for [email protected] |
    +-------------------------------------------------------------------------------------------------------------- --------------------------+
    | GRANT all privileges on * * to ' root ' @ ' localhost ' identified by PASSWORD ' *83947472a627808d9fc03023210c4c369f0caa5d ' with GRANT OPTION |
    | Grant PROXY on "@" to "root" @ ' localhost ' with GRANT OPTION
    2) Give appropriate permission

    Mysql> GRANT All privileges on * * to ' root ' @ ' 10.240.210.60 ' identified by PASSWORD ' *83947472a627808d9fc03023210c4c36 9f0caa5d ' with GRANT OPTION;

    Query OK, 0 rows Affected (0.00 sec)

    mysql> flush Privileges; Refreshing the database
    Query OK, 0 rows Affected (0.00 sec)

  3. Re-connect

    650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/73/60/wKioL1X7s_yyqqAZAAQ9eQs_d4Y073.jpg "title=" Qq20150918143924.jpg "alt=" Wkiol1x7s_yyqqazaaq9eqs_d4y073.jpg "/>

MySQL ERROR 1045 (28000): Workaround for the Access denied for user

Related Article

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.