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