Sign inSign up

xuxuclassmate/tidb

By xuxuclassmate

•Updated over 3 years ago

TiDB v6.1.2

Image
0

1.5K

xuxuclassmate/tidb repository overview

⁠This image is modified based on the v6.1.2

⁠Use method, please follow this order

⁠1、Download

docker pull xuxuclassmate/tidb

⁠2、Start Container

docker run --name tidb -d --privileged=true -p 4000:4000 xuxuclassmate/tidb

⁠3、Do not enter the Docker container(MySQL client needs to be downloaded locally)

⁠4、Log in to tidb

mysql -h 127.0.0.1 -P 4000 --prompt="tidb> "

other:

#create database

CREATE DATABASE demo CHARACTER;
#create username

CREATE USER 'test'@'%' IDENTIFIED BY 'test';
GRANT ALL PRIVILEGES ON demo.* TO 'test'@'%';
FLUSH PRIVILEGES;
# update user password

use mysql

update user set authentication_string = password('123456') where User = 'root';

FLUSH PRIVILEGES;

⁠next login tidb

mysql -h 127.0.0.1 -P 4000 -u root -p --prompt="tidb> "

Tag summary

Content type

Image

Digest

sha256:9e48e41cb…

Size

68.1 MB

Last updated

over 3 years ago

docker pull xuxuclassmate/tidb