{"id":19635890,"url":"https://github.com/tozd/docker-mysql","last_synced_at":"2025-04-28T08:31:32.702Z","repository":{"id":34131943,"uuid":"37964419","full_name":"tozd/docker-mysql","owner":"tozd","description":"MySQL (MariaDB fork) Docker image. Read-only mirror of https://gitlab.com/tozd/docker/mysql","archived":false,"fork":false,"pushed_at":"2023-07-14T11:55:31.000Z","size":34,"stargazers_count":1,"open_issues_count":3,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-17T20:13:41.987Z","etag":null,"topics":["docker","docker-image","mariadb","mysql"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tozd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"mitar"}},"created_at":"2015-06-24T05:31:07.000Z","updated_at":"2022-01-18T00:11:51.000Z","dependencies_parsed_at":"2022-08-17T23:10:19.757Z","dependency_job_id":null,"html_url":"https://github.com/tozd/docker-mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tozd","download_url":"https://codeload.github.com/tozd/docker-mysql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224102311,"owners_count":17256140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","docker-image","mariadb","mysql"],"created_at":"2024-11-11T12:27:25.366Z","updated_at":"2024-11-11T12:27:26.547Z","avatar_url":"https://github.com/tozd.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/mitar"],"categories":[],"sub_categories":[],"readme":"# tozd/mysql\n\n\u003chttps://gitlab.com/tozd/docker/mysql\u003e\n\nAvailable as:\n\n- [`tozd/mysql`](https://hub.docker.com/r/tozd/mysql)\n- [`registry.gitlab.com/tozd/docker/mysql`](https://gitlab.com/tozd/docker/mysql/container_registry)\n\n## Image inheritance\n\n[`tozd/base`](https://gitlab.com/tozd/docker/base) ← [`tozd/dinit`](https://gitlab.com/tozd/docker/dinit) ← `tozd/mysql`\n\n## Tags\n\n- `5.5`: MariaDB 5.5\n- `10.0`: MariaDB 10.0\n- `10.1`: MariaDB 10.1\n- `10.3`: MariaDB 10.3\n- `10.6`: MariaDB 10.6\n\n## Volumes\n\n- `/var/log/mysql`: Log files. Logs are **not** rotated.\n- `/var/lib/mysql`: Persist this volume to not lose state.\n\n## Variables\n\n- `MYSQL_DATA_CHOWN`: If set, then container will on startup change ownership of all files in `/var/lib/mysql` to MySQL. Use if you copied data into the volume from elsewhere.\n\n## Ports\n\n- `3306/tcp`: Port on which MySQL listens.\n\n## Description\n\nImage providing [MySQL (MariaDB fork)](https://mariadb.org/) as a service.\n\nDifferent Docker tags provide different MySQL versions.\n\nYou should make sure you mount data volume (`/var/lib/mysql`) so that you do not\nlose database data when you are recreating a container. If a volume is empty, image\nwill initialize it at the first startup.\n\nThe intended use of this image is that it is shared between multiple other services\nand that you create databases and users accordingly.\n\nAfter first run, you can connect to the MySQL as an administrator from the inside\nthe container, for example, for a container named `mysql`:\n\n```\n$ docker exec -t -i mysql /bin/bash\n$ mysql -u root\n```\n\nYou should set MySQL root user's password as soon as possible:\n\n```\n$ mysqladmin -u root password '\u003cPASSWORD\u003e'\n```\n\nAfter that you can connect to the MySQL using:\n\n```\n$ mysql -u root -p\n```\n\nYou can create database:\n\n```\n\u003e CREATE DATABASE \u003cDBNAME\u003e\n```\n\nYou can create users:\n\n```\n\u003e GRANT ALL PRIVILEGES ON \u003cDBNAME\u003e.* TO '\u003cUSERNAME\u003e'@'%' IDENTIFIED BY '\u003cPASSWORD\u003e'\n```\n\n## GitHub mirror\n\nThere is also a [read-only GitHub mirror available](https://github.com/tozd/docker-mysql),\nif you need to fork the project there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftozd%2Fdocker-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftozd%2Fdocker-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftozd%2Fdocker-mysql/lists"}