Whenever you enconter this:
Please use mysql_upgrade to fix this error.
or using mysql_upgrade -u root -p says:
Looking for 'mysql' as: mysqlLooking for 'mysqlcheck' as: mysqlcheckError: Failed while fetching Server version! Could be due to unauthorized access.FATAL ERROR: Upgrade failed
you can try this:
chown -R mysql /var/lib/mysqlmysql_upgrade -u root -p