Show pageOld revisionsBacklinksODT exportBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====Password reset==== Resetting of the password is done via adding 2 parameters in the /etc/my.cnf file: <sxh bash> [mysqld] skip-grant-tables skip-networking </sxh> After these lines are added in your configuration file, restart the server and log in without password: <sxh bash> [root@mysqlsqlnodea ~]# service mysqld stop Redirecting to /bin/systemctl stop mysqld.service [root@mysqlsqlnodea ~]# vi /etc/my.cnf --edit the parameters with the ones above [root@mysqlsqlnodea ~]# service mysqld start Redirecting to /bin/systemctl start mysqld.service [root@mysqlsqlnodea ~]# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version: 5.7.19-ndb-7.5.7-cluster-gpl-log MySQL Cluster Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> </sxh> Reset the password using the following syntax: <sxh bash> mysql> flush privileges; Query OK, 0 rows affected (0.18 sec) mysql> mysql> UPDATE mysql.user SET Password=PASSWORD('Welcome01') WHERE User='root'; Query OK, 3 rows affected (0.00 sec) Rows matched: 3 Changed: 3 Warnings: 0 mysql> exit Bye </sxh> Edit the configuration file again to remove these lines, restart the service and log in using the password <sxh bash> [root@mysqlsqlnodea ~]# vi /etc/my.cnf [root@mysqlsqlnodea ~]# service mysqld stop Redirecting to /bin/systemctl stop mysqld.service [root@mysqlsqlnodea ~]# service mysqld start Redirecting to /bin/systemctl start mysqld.service [root@mysqlsqlnodea ~]# mysql -uroot -p Enter password: <- Password Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 5 Server version: 5.7.19-ndb-7.5.7-cluster-gpl-log MySQL Cluster Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> </sxh> mysqlndbmgm_rstpass.txt Last modified: 2019/10/18 20:04by 127.0.0.1