{"success":true,"data":{"user":"xuxuclassmate","name":"tidb","namespace":"xuxuclassmate","repository_type":"image","status":1,"status_description":"active","description":"TiDB v6.1.2","is_private":false,"is_automated":false,"star_count":0,"pull_count":1295,"last_updated":"2023-02-10T07:12:30.828523Z","last_modified":"2024-10-16T13:48:34.145251Z","date_registered":"2022-11-25T09:37:56.52964Z","collaborator_count":0,"affiliation":null,"hub_user":"xuxuclassmate","has_starred":false,"full_description":"This image is modified based on the v6.1.2\n---\n# Use method, please follow this order\n\n## 1、Download\n```\ndocker pull xuxuclassmate/tidb\n```\n\n##  2、Start Container\n```\ndocker run --name tidb -d --privileged=true -p 4000:4000 xuxuclassmate/tidb\n```\n## 3、Do not enter the Docker container（MySQL client needs to be downloaded locally）\n## 4、Log in to tidb\n```\nmysql -h 127.0.0.1 -P 4000 --prompt=\"tidb> \"\n```\nother:\n```\n#create database\n\nCREATE DATABASE demo CHARACTER;\n#create username\n\nCREATE USER 'test'@'%' IDENTIFIED BY 'test';\nGRANT ALL PRIVILEGES ON demo.* TO 'test'@'%';\nFLUSH PRIVILEGES;\n# update user password\n\nuse mysql\n\nupdate user set authentication_string = password('123456') where User = 'root';\n\nFLUSH PRIVILEGES;\n\n```\n## next login tidb\n```\nmysql -h 127.0.0.1 -P 4000 -u root -p --prompt=\"tidb> \"\n```","permissions":{"read":true,"write":false,"admin":false},"media_types":["application/vnd.docker.container.image.v1+json"],"content_types":["image"],"categories":[],"immutable_tags_settings":{"enabled":false,"rules":[".*"]},"storage_size":71451631,"source":null},"timestamp":"2026-07-29T16:45:22.085Z"}