Root permission error and resolution during Grant command execution in Linux---mysql

Source: Internet
Author: User

Finally resolved the root user password login problem, in the new user Test1 authorization when the following error occurred, prompting root permissions problem:

Mysql> GRANT All on * * to ' test1 ' @ ' localhost ' identified by ' 123456 '; ERROR 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:yes)

Check the online many ways to say # Mysqld_safe-u MySQL--skip-grant-tables old method into the change password, tried, or no effect. Later saw a great God said may be related to Grant_priv, so manually modify, restart, and then execute the grant authorization command, OK. Dare not alone, write to share with you, easy to solve the problem. 650) this.width=650; "src=" Http://img.baidu.com/hi/face/i_f03.gif "alt=" I_f03.gif "/>

Here's how to fix it:

The root user grant_priv in the user table may be in the off state N, you need to enable Y

Update user Set Grant_priv = ' Y ' where user = ' root ';


Root permission error and resolution during Grant command execution in Linux---mysql

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.