当前位置:网站首页>TiDB单机、集群环境安装,单机急速体验
TiDB单机、集群环境安装,单机急速体验
2022-06-09 19:46:00 【4xx.me】
TiDB分布式关系型数据库单机安装,急速体验,只适合测试环境
简介
TiDB 是 PingCAP 公司设计的开源分布式 HTAP (Hybrid Transactional and Analytical Processing) 数据库,结合了传统的 RDBMS 和 NoSQL 的最佳特性。TiDB 兼容 MySQL,支持无限的水平扩展,具备强一致性和高可用性。TiDB 的目标是为 OLTP (Online Transactional Processing) 和 OLAP (Online Analytical Processing) 场景提供一站式的解决方案。 官网:https://pingcap.com/docs-cn/
单机环境安装
wget http://download.pingcap.org/tidb-latest-linux-amd64.tar.gz
tar zxf tidb-latest-linux-amd64.tar.gz
# 启动
chmod -R 755 tidb-latest-linux-amd64
cd /root/tidb-latest-linux-amd64/bin
./pd-server --data-dir=/data/tidb/pd --log-file=/data/tidb/pd.log &
./tikv-server --pd="127.0.0.1:2379" --data-dir=/data/tidb/tikv --log-file=/data/tidb/tikv.log &
./tidb-server --store=tikv --path="127.0.0.1:2379" --log-file=/data/tidb/tidb.log &关闭使用kill杀进程
ps -ef | grep tidb
kill PID集群环境安装
https://pingcap.com/docs-cn/op-guide/ansible-deployment/
连接TiDB
使用mysql工具连接即可,和操作mysql一样。mysql -h 127.0.0.1 -P 4000 -u root
修改密码
安装完初始化账号root、密码为空。
set password for 账号=password('新密码');边栏推荐
- 2018年全国职业院校技能大赛中职组“网络空间安全”正式赛卷及评分标准
- WIN7 64位旗舰版安装OFFICE2003 提示:“错误1919,配置ODBC数据源MS Access Database时发生错误ODEC错误”
- Not only Lenovo, which sells computers, but also what's new?
- 种一棵树最好的时间是十年前,其次便是现在(C语言选择和循环训练题目)
- NoSQL之Redis配置与优化(你不在南京的日子我替你吹了秦淮河的晚风)
- 企业内部Wiki,你建立了么?
- Smart PLC calls the same subroutine (FC) multiple times
- 根文件系統
- ASP Err. Detailed description of number error
- uboot详解
猜你喜欢

<collection>和<association>标签

版号批下来,可公司已倒闭:现如今,做款游戏还能卖给腾讯吗?

Question bank and answers for the 2022 National latest fire facility operator (senior fire facility operator) examination

What operation and maintenance software and tools will be used for online operation and maintenance?
Implementation method of redis generating global unique ID

Hash table distributed hash table (DHT) hash table

泛微OA9前台无限制getshell

uniapp h5单页面横屏
![[resource sharing] comprehensive navigation website](/img/01/eae58d625ebbf69dcb8766409e2ef0.png)
[resource sharing] comprehensive navigation website

Uniapp H5 single page horizontal screen
随机推荐
中职网络安全 系统漏洞 隐藏信息探索 解析
Fast finding the number of nodes in a complete binary tree
asp.net txt读写
20XX年全国职业院校技能大赛高职组“信息安全管理与评估”赛项任务书
2022 "network security" competition of secondary vocational group freshmen test of Shandong Zibo Industrial school competition assignment
5 longest palindrome substring (interval DP)
Official competition paper and scoring standard of "Cyberspace Security" of secondary vocational group in 2018 national vocational college skills competition
asp.net DataTable和Table的一些笔记
2018年全国职业院校技能大赛中职组“网络空间安全”正式赛卷及评分标准
< collection > and < Association > labels
Fast finding the number of nodes in a complete binary tree
普通三进制逻辑数学世界先驱者——伍耀晖先生面向全球公布普通三进制逻辑数学全部真值表科研成果(伍氏定律)
How does GNN generalize? This 135 page PDF doctoral thesis "generalization evaluation and improvement of neurograph reasoning and learning"
Question bank and answers for the 2022 National latest fire facility operator (senior fire facility operator) examination
C语言实现猜数字游戏
Tpami2022 | heterogeneous domain adaptation based on adversarial neural representation learning: e-commerce and network security experiment
The best time to plant a tree is ten years ago, and the second is now (C language selection and cycle training topic)
如何查看 Tekton 的流水线指标
Visual display of cool 3D charts
VNCTF 2022 InterestingPHP