Mysql version 8 shipped with the latest version of major Linux distros could made some php application stop working, namely WordPress - need to research furthermore on the why.
Creating a user designated to be used by WordPress with using mysql_native_password
authentication seems to solve this issue.
mysql> CREATE USER 'dbuser'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
Or alter the existing user.
mysql> ALTER