Single-Machine boot TIDB

Source: Internet
Author: User
Tags mysql client

Deployment directory:

TREE-FL 3

.|--pd/|   |--bin/|   |   |--pd-ctl*|   |   |--pd-recover*|   |   |--pd-server*|   |   '--pd-tso-bench*| `--default. pd/| '--member/|--Readme|--tidb/|       '--bin/|       |--goyacc*|   '--tidb-server*|--tikv1/|   |--bin/|   |   |--bench-tikv*|   |   |--build/|   |   |--deps/|   |   |--examples/|   |   |--incremental/|   | |--Libtikv.rlib|   |   |--native/|   |   |--raft/|   |   |--tikv-ctl*|   |   |--tikv-fail*|   |   '--tikv-server*|   |--db/|   | |--LOCK|   |   |--backup/|   |   |--db/|   |   |--raft/|   |   '--snap/|   '--raft/|--tikv2/|   |--bin/|   |   |--bench-tikv*|   |   |--build/|   |   |--deps/|   |   |--examples/|   |   |--incremental/|   | |--Libtikv.rlib|   |   |--native/|   |   |--raft/|   |   |--tikv-ctl*|   |   |--tikv-fail*|   |   '--tikv-server*|   |--db/|   | |--LOCK|   |   |--backup/|   |   |--db/|   |   |--raft/|   |   '--snap/| '--raft/`--tikv3/|--bin/|   |--bench-tikv* |   |--build/|   |--deps/|   |--examples/|   |--incremental/| |--Libtikv.rlib|   |--native/|   |--raft/|   |--tikv-ctl* |   |--tikv-fail* |   '--tikv-server* |--db/| |--LOCK|   |--backup/|   |--db/|   |--raft/| '--snap/    `--raft/
    • (repaired with root) change the maximum number of open files:
echo ' Fs.file-max = 82920 ' >>/etc/sysctl.conf
Echo ' *-nofile 82920 ' >>/etc/security/limits.conf
Sysctl-p
Log back in to a terminal session
    • Start PD

Pd/bin/pd-server

    • Start TIKV

Enter Tikv[1-3]/bin execution:

Tikv-server-a 127.0.0.1:9000-s. /db--pd-endpoints 127.0.0.1:2379

Tikv-server-a 127.0.0.1:9001-s. /db--pd-endpoints 127.0.0.1:2379

Tikv-server-a 127.0.0.1:9002-s. /db--pd-endpoints 127.0.0.1:2379

    • Start TIDB

Tidb/bin/bin/tidb-server-store Tikv-path ' 127.0.0.1:2379/pd?cluster=1 '-P 3306

    • Connect with MySQL Client

mysql-uroot-h127.0.0.1

Welcome to the MySQL Monitor. Commands End With; or \g.your MySQL connection ID is 1Server Version:5.7.1-tidb-v1.1.0-alpha-424-gcc808a5 MySQL Community Server (Apache License2.0) Copyright (c) -, -, Oracle and/or its affiliates. All rights reserved. Oracle isA registered trademark of Oracle Corporation and/or Itsaffiliates. Other names trademarks of their respectiveowners. Type'Help ;'Or'\h'  forHelp. Type'\c'To clear the current input statement.mysql>show databases;+--------------------+| Database |+--------------------+| Information_schema | | Performance_schema | | MySQL | | Test |+--------------------+4Rowsinch Set(0.01Sec

Single-Machine boot TIDB

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.