Change MySQL password under Fedora14

Source: Internet
Author: User
I don't know why, it is very difficult to configure Fedora14 after installing MySQL with yum. Now I will record the password change method. Error: [root@www.linuxidc.commysql] # mysqladmin-urootpassword123456mysqladmin: Can tturnofflogging; error: 'accesssdenied; youneedtheSUPER

I don't know why, it is very difficult to configure Fedora 14 after installing MySQL with yum. Now I will record the password change method.

Error:

[Root@www.linuxidc.com mysql] # mysqladmin-u root password 123456
Mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER privilege for this operation'

Is it a permission issue? Puzzled

Solution:

1. Modify the file/etc/my. cnf and add skip-grant-tables to the [mysqld] segment. This means that the permission verification is skipped when mysql is started and saved and exited.

2. restart mysql service [root@www.linuxidc.com mysql] # service mysqld restart

3. log on to mysql and change the password.

  1. [Root@www.linuxidc.com mysql] # mysql
  2. Welcome to the MySQL monitor. Commands end with; or \ g.
  3. Your MySQL connection id is 2
  4. Server version: 5.1.56 Source distribution
  5. Copyright (c) 2000,201 0, Oracle and/or its affiliates. All rights reserved.
  6. This software comes with absolutely no warranty. This is free software,
  7. And you are welcome to modify and redistribute it under the GPL v2 license
  8. Type 'help; 'or' \ H' for help. type' \ C' to clear the current input statement.
  9. Mysql> USE mysql;
  10. Reading table information for completion of table and column names
  11. You can turn off this feature to get a quicker startup with-
  12. Database changed
  13. Mysql> UPDATE user SET Password = password ('passwd') WHERE User = 'root ';
  14. Query OK, 4 rows affected (0.00 sec)
  15. Rows matched: 4 Changed: 4 Warnings: 0
  16. Mysql> flush privileges;
  17. Query OK, 0 rows affected (0.00 sec)
  18. Mysql> quit
4. Change the configuration file/etc/my. cnf and restart the service.

Good luck

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.