温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

TiDB rpm 安装方式

发布时间:2020-03-08 13:34:30 来源:网络 阅读:355 作者:紫色葡萄 栏目:MySQL数据库

rpm/deb 或yum/apt 一直以来都是Linux 上最简单的软件安装方式。


由于TiDB 官方更推崇ansible/docker/k8s的安装方式,对于传统安装方式,官方仅仅给出了二进制安装文件,没有给出rpm 安装方式。


本着折腾的精神,我基于源码给TiDB 编译打包了一份rpm包,这是目前最简单快速的安装体验TiDB 的方法。


环境:CentOS 7

TiDB 版本:3.0.3


1、安装TiDB

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


2、启动服务

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


3、安装mysql客户端

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)]>


在硬件条件相同的情况下,与MySQL 相比,TiDB 单机性能很低,在实际生产环境中,通常是以集群的方式使用。

TiDB 的优点在于保持MySQL兼容性的同时,解决了以往“砸钱堆硬件”都难以实现的简单性、维护性和扩展性。


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI