To answer the question that what is TiDB, we briefly talked about NewSQL. So, the minimum expectation for a NewSQL database would be, it should run SQL. And the best way for (a person who always try to at least think as) a developer, I decided to give it a run~
Here is my reference for this tutorial.
Here are my questions when going through the tutorial so I think we’d better cover the concepts before diving in.
Now it is Phoebe putting on her instructional design hat:
Download and install TiUP:
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
Declare the global environment variable:
source ~/.profile
Start the cluster in the current session:
tiup playground v5.0.2 --db 2 --pd 3 --kv 3 --monitor
Install mysql using Brew:
Brew install mysql
Connect to mysql client
mysql --host 127.0.0.1 --port 4000 -u root
Now we are good to go! In the next blog, we will explore the database and do some SQL fun.