Fix Column count of mysql.db is wrong. Expected 22, found 20 – centos

Fix Column count of mysql.db is wrong. Expected 22, found 20 – centos

1. service httpd stop

2. service mysqld stop

3. edit /etc/my.cnf

under [mysqld], add the following line:

skip-grant-tables
[mysqld]
skip-grant-tables



4. service mysqld start

5. run command 
mysql_fix_privilege_tables --verbose --password=MYSQLPASSWORD

6. edit /etc/my.cnf comment out line 
#skip-grant-tables

7. stop and start mysqld 
service mysqld stop
service mysqld start

8. start httpd
service httpd start