https://github.com/silmu/docker-mysql-boilerplate
Docker MySQL boilerplate 🐳
https://github.com/silmu/docker-mysql-boilerplate
boilerplate docker docker-compose docker-container mysql template
Last synced: about 2 months ago
JSON representation
Docker MySQL boilerplate 🐳
- Host: GitHub
- URL: https://github.com/silmu/docker-mysql-boilerplate
- Owner: silmu
- License: mit
- Created: 2024-02-27T18:06:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-28T21:53:39.000Z (over 1 year ago)
- Last Synced: 2025-03-11T23:37:10.168Z (over 1 year ago)
- Topics: boilerplate, docker, docker-compose, docker-container, mysql, template
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker MySQL boilerplate 🐳
If you don't feel like setting up MySQL on your system, using MySQL in a system agnostic Docker container is a great option.
## Steps to follow
1. Install [Docker](https://docs.docker.com/desktop/setup/install/mac-install/)
2. Copy repository `git clone https://github.com/silmu/docker-mysql-boilerplate.git`
3. Run `docker-compose up -d`
### Troubleshooting 🛠️
If you encounter error logging in for the first time run:
1. `docker exec -it mysql-8.4-container mysql -u root -p` to login into MySQL in the container
2. Set the authentication plugin to `caching_sha2_password`:
```sql
ALTER USER 'root'@'localhost' IDENTIFIED WITH 'caching_sha2_password' BY 'root';
FLUSH PRIVILEGES;
```