Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tidb driver #27

Open
wants to merge 1 commit into
base: 5.0-mysql-support-opt-2.1
Choose a base branch
from

Conversation

knull-cn
Copy link

@knull-cn knull-cn commented Sep 18, 2022

  1. driver repo : https://github.com/pingcap/tidb-loadbalance
    it will be load balance by driver , by it is dependent on mysql-driver
    use load balance can go to the repo; and tomcat has bug and should set tidb.jdbc.url-mapper = random (default is robin but was not effective)

  2. you can run tpcc on tidb database with this command
    sql file is same to mysql, so use mysql/*.sql file
    props.tidb was difference to props.mysql, which is changed driver and the conn values.
    create database tpcc;

cd run && 
./runSQL.sh props.tidb sql.mysql/tableCreates.sql && \
./runSQL.sh props.tidb sql.mysql/indexCreates.sql
./runLoader.sh props.tidb
./runBenchmark.sh props.tidb 
  1. of course, you can also use mysql driver to connect tidb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant