You can login to the mariadb container by running
$ docker-compose exec mariadb /bin/bash
Once you log into the container, you can launch mysql by running
# mysql -uroot -padmin
This will give access to the database.
You can login to the mariadb container by running
$ docker-compose exec mariadb /bin/bash
Once you log into the container, you can launch mysql by running
# mysql -uroot -padmin
This will give access to the database.
docker exec -it <mariadb_container_id> bash
refer this topic
pymysql.err.OperationalError - (1045, "Access denied for user 'root'@'localhost' (using password: YES)")
Thanks
Confirming this worked for me using the helm chart installation. My test installation with the site “localhost” worked, but when I named the site something else I had to do this.
HI, I got the same error,
In docker. But It was worked yesterday.
Here I don’t want recreate my site or remove volume.
I tried GRANT ALL PRIVILEGES it’s not worked for me.
any other possibility to fix this issue.
so anyone did really fix this error … same thing happen to me