TIDB rpm installation


rpm / deb or yum / apt on Linux has always been the easiest software installation.


As the official TiDB more respected ansible / docker / k8s installation, the traditional installation, the official gives only install binary files, not given rpm installation.


In the toss of the spirit, I give TiDB based on source code to compile a package rpm package, now it appears to be the easiest way to experience a stand-alone installation of the TiDB.



Environment: CentOS 7


TiDB Version: 3.0.3


1, the installation TiDB

yum-config-manager --add-repo http://purplegrape.github.io/public.repo 
yum install pd tikv tidb -y


2, start the service

systemctl enable pd-server tikv-server tidb-server --now


3, install mysql client

yum install mariadb -y


4, TiDB

mysql -u root  -P 4000
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.25-TiDB- MySQL Community Server (Apache License 2.0)
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [(none)]>


At the same hardware conditions, compared with MySQL, TiDB single performance is very low, in the actual production environment, usually in a cluster manner.

TiDB advantage is to solve the simplicity, maintainability and scalability in the past "hardware heap" difficult to achieve.


Guess you like

Origin blog.51cto.com/purplegrape/2460706