Recover MySQL 5.7 root Password in Redhat/CentOS 7
You can recover MySQL 5.7 root Password with following 9 easy steps. These commands will work in Redhat/CentOS 7 Step-1: Stop MySQL server systemctl stop mysqld Step-2: Set the mySQL environment option systemctl set-environment MYSQLD_OPTS=”–skip-grant-tables” Step-3: Start mysql usig the options you just set systemctl start mysqld Step-4:Login as root mysql -u