Closed samtipton closed 2 years ago
Okay running docker exec -it <CONTAINER_ID> /bin/bash
then running mysql -u root -p -h localhost
with random generated password gets me to the MariaDB prompt. Now I need to figure out how to use this image in my own docker compose application and setup and address the container from my other container.
I am unable to connect to the bible_databases container with instructions. Please help!
Running
docker-compose up
returnsI then run
sudo /usr/bin/mysql_secure_installation
and set a root user password, keep anon users, test databases, and allow remote login.Then if I run
mysql -h 127.0.0.1 -u root -p bible
and provide the newly created password I get:ERROR 1698 (28000): Access denied for user 'root'@'localhost'
If I do not run
mysql_secure_installation
and use the random root password I get the same error. What am I doing wrong?