{"id":18407707,"url":"https://github.com/kamaslau/trial-mysql","last_synced_at":"2026-04-29T12:33:26.406Z","repository":{"id":93275977,"uuid":"454572570","full_name":"kamaslau/trial-mysql","owner":"kamaslau","description":"Trial or micro-service unit of MySQL/MariaDB with Adminer as Web UI.","archived":false,"fork":false,"pushed_at":"2025-05-27T03:41:36.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-27T04:36:16.289Z","etag":null,"topics":["adminer","docker","docker-compose","mariadb","mysql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kamaslau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-01T22:31:02.000Z","updated_at":"2025-05-27T03:41:39.000Z","dependencies_parsed_at":"2024-03-25T12:28:40.913Z","dependency_job_id":"14e377c3-79b3-4c49-8ffe-e247337be177","html_url":"https://github.com/kamaslau/trial-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kamaslau/trial-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Ftrial-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Ftrial-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Ftrial-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Ftrial-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamaslau","download_url":"https://codeload.github.com/kamaslau/trial-mysql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Ftrial-mysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32426579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T12:24:25.982Z","status":"ssl_error","status_checked_at":"2026-04-29T12:24:24.439Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adminer","docker","docker-compose","mariadb","mysql"],"created_at":"2024-11-06T03:15:03.312Z","updated_at":"2026-04-29T12:33:26.401Z","avatar_url":"https://github.com/kamaslau.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# trial-mysql\n\nTrial or micro-service unit of [MySQL](https://dev.mysql.com/doc/)/[MariaDB](https://mariadb.org/documentation/) with [Adminer](https://www.adminer.org/) as Web UI.\n\nFor PostgreSQL bootstrapper, checkout the [trial-postgresql](https://github.com/kamaslau/trial-postgresql).\n\n## Service URL\n\n- Database (MySQL/MariaDB) [http://localhost:3306](http://localhost:3306)\n- Web UI (Adminer) [http://localhost:8080](http://localhost:8080)\n\n## Default user\n\nDefault logins should only be used in local/dev environments.\n\n| Username | Password |\n| -------- | -------- |\n| root     | 123456   |\n\n## Usage\n\n### Start with [Docker Compose](https://docs.docker.com/compose/)\n\n```bash\n# Initiate .env file\ncp .env.sample .env\n# Start services\ndocker compose up -d\n```\n\nUpdate existing composed containers with latest images:\n\n```bash\ndocker compose pull \u0026\u0026 \\\ndocker compose down \u0026\u0026 \\\ndocker compose up -d\n```\n\n### Start services individually\n\nLaunch database first, then the UI.\n\n#### MariaDB\n\n```bash\ndocker run -p 3306:3306 -d --restart always --env MYSQL_ROOT_PASSWORD=123456 --name mysql mariadb:latest\n```\n\n#### MySQL\n\n```bash\ndocker run -p 3306:3306 -d --restart always --env MYSQL_ROOT_PASSWORD=123456 --name mysql mysql:latest\n```\n\n#### Adminer\n\nPass in to link the database container with param `--link database-container-name:db` .\n\n```bash\ndocker run -p 8080:8080 -d --restart always --env ADMINER_DEFAULT_SERVER=mysql --name adminer adminer:latest\n```\n\n### Further operations\n\n```bash\n# Enter container and initiate shell\ndocker exec -it mysql bash\n\n# List installed plugins\nls -l /usr/lib/mysql/plugin\n```\n\n### Error handling\n\n## Host '172.18.0.x' is not allowed to connect to this MySQL server\n\n[用户无权通过当前网络访问 MySQL](https://github.com/docker-library/mysql/issues/275)。\n\n```bash\n# Enter container and initiate shell\ndocker exec -it mysql bash\n\n# Login as root user\nmysql -u root -p\n```\n\n```sql\n-- Create root user visiting from any network with password 123456 (change this for safety)\nCREATE USER 'root'@'%' IDENTIFIED BY '123456';\ngrant all privileges on *.* to 'root'@'%';\n-- grant all privileges on *.* to 'root'@'%' identified by '123456';\n\n-- Verify the user creation\nselect host ,user from mysql.user;\n```\n\n## Relevent Docker images\n\n- [Adminer](https://hub.docker.com/_/adminer)\n- [MariaDB](https://hub.docker.com/_/mariadb)\n- [MySQL](https://hub.docker.com/_/mysql)\n\n## References\n\n- https://dev.mysql.com/doc/refman/8.0/en/docker-mysql-getting-started.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaslau%2Ftrial-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamaslau%2Ftrial-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaslau%2Ftrial-mysql/lists"}