MySQL Database root permissions loss Solution

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

One day accidentally to the root of the permissions to the smallest (can only log in, do nothing), this can be a nasty death to me. It's too troublesome to reload, and there are a lot of users, one after another do not know when.

Later I think of a way, first the current server MySQL service to stop, the MySQL directory under the MySQL directories renamed to Mysql_old, to another server under the MySQL directory of the/data/mysql directory copy to the corresponding directory, Then start the MySQL service, using the other server under the root of the account to log into the phpMyAdmin, you can see the full operating rights, but this 6184.html "> datasheet does not have the current server in the database project and user information. Then find the Mysql_old database, go into the user table, find the first root localhost table section, modify: Change all n to Y. And then stop the MySQL service, the new copy over the MySQL delete, the mysql_old renamed to MySQL, and then start the server with root login, found that all the permissions have returned.

Source: www.hezuzhan.cn

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.