Fixing MariaDB issues after rebuilding the container with devcontainer

Refer to : Fixing MariaDB issues after rebuilding the container
and development

I am able to solved the problem with my production containers, but how could to solve with my dev container.

What I have tried with devecontainer:

  1. open dev container (vscode)
  2. at my host machine connect to mariadb container with root and issue command to
    GRANT ALL PRIVILEGES ON db_name.* TO 'db_name'@'%'; FLUSH PRIVILEGES;
  3. restart bench inside the dev container
  4. access the site
  5. still get this error
pymysql.err.OperationalError: (1045, "Access denied for user '_c3378df433f3bca6'@'172.18.0.6' (using password: YES)")