• TIDB ---NEW SQL


    https://github.com/pingcap/tidb

    http://www.pingcap.com/

    Quick Start
    
    Run TiDB with Docker
    
    You can quickly test TiDB with Docker, the source repository contains the Dockerfile which contains local tidb-server.
    
    To install Docker on your system, you can read the document on https://docs.docker.com/
    
    docker pull pingcap/tidb:latest
    docker run --name tidb-server -d -p 4000:4000 pingcap/tidb:latest
    docker pull may take a while to download images ~560M.
    
    Then you can use official mysql client to connect to TiDB.
    
    mysql -h 127.0.0.1 -P 4000 -u root -D test
    Notice: OS X user may use docker-machine ip to connect it.
    
    Run TiDB on TiKV
    
    Read this doc.
    
    Pre-requirement
    
    Go environment. Currently a 64-bit version of go >= 1.5 is required.
    
    git clone https://github.com/pingcap/tidb.git $GOPATH/src/github.com/pingcap/tidb
    cd $GOPATH/src/github.com/pingcap/tidb
    make
    Run command line interpreter
    
    Interpreter is an interactive command line TiDB client. You can just enter some SQL statements and get the result.
    
    make interpreter
    cd interpreter && ./interpreter
    Press Ctrl+C to quit.
    
    Run as MySQL protocol server
    
    make server
    cd tidb-server && ./tidb-server
    In case you want to compile a specific location:
    
    make server TARGET=$GOPATH/bin/tidb-server
    The default server port is 4000 and can be changed by flag -P <port>.
    
    Run ./tidb-server -h to see more flag options.
    
    After you started tidb-server, you can use official mysql client to connect to TiDB.
    
    mysql -h 127.0.0.1 -P 4000 -u root -D test
  • 相关阅读:
    服务器出现大量的127.0.0.1:3306 TIME_WAIT连接 解决方法 [转载]
    phpize安装php扩展CURL
    linux位数查看
    Linux下Sublime Text 3的安装
    ECstore后台报表显示空白问题解决办法
    centos 上安装phpstorm
    Nginx禁止目录执行php文件权限
    vue 动画
    vue的路由
    组件的传值 组件之间的通讯
  • 原文地址:https://www.cnblogs.com/zengkefu/p/5680787.html
Copyright © 2020-2023  润新知