Every thing seems to be running OK following the above in AlmaLinux 8.9
There is one thing: mysql_upgrade --force works but it produces the following error ---> "mysql_upgrade: unknown variable 'query_cache_type=1'"
In CWP dashboard using the restart MySQL Database Server button works, and the error is suppressed in the success dialogue.
Thanks for sharing this with us Sandeep!