I am facing exactly the same issue. I provided the all privileges’ again to my database user, uninstall and reinstall mariaDB, uninstall my EAP-RHPAM application and installed in a different directory but nothing worked. I think the only option I left with is to format my laptop.
Won’t solve the problem either… As the “problem” actualy is mysql doing its job. You will need to check the Grants and from which ip range an account is allowed to login.
For instance, this allows that the root user can login from any ip using the specified password:
Clearly this only solves the “problem” for the database user named root. If you need a different user to access the database, you will need to replace TO 'root' with TO 'whatever_the_user_is' and if you want to lock the allowed ip range down, you need to replace @’% with @172.17.% or whatever the ip range of the docker network is.