Coder Social home page Coder Social logo

FATAL: mysql_drv_query() returned error 1105 (Percona-XtraDB-Cluster prohibits use of DML command on a table about sysbench-tpcc HOT 2 CLOSED

jangrui avatar jangrui commented on July 29, 2024
FATAL: mysql_drv_query() returned error 1105 (Percona-XtraDB-Cluster prohibits use of DML command on a table

from sysbench-tpcc.

Comments (2)

MaWoe avatar MaWoe commented on July 29, 2024

Don't know if this works with your exact version of sysbench-tpcc but in master there is a custom script option force_pk which prevents above error:

sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)

tpcc.lua options:
  --enable_purge=STRING         Use purge transaction (yes, no) [no]
  --force_pk=N                  Force using auto-inc PK on history table [0]
  --mysql_storage_engine=STRING Storage engine, if MySQL is used [innodb]
  --mysql_table_options=STRING  Extra table options, if MySQL is used. e.g. 'COLLATE latin1_bin' []
  --pgsql_schema=STRING         Schema name for Pg(default:public) [public]
  --report_csv=STRING           Report output in csv (yes, no) [no]
  --scale=N                     Scale factor (warehouses) [100]
  --tables=N                    Number of tables [1]
  --trx_level=STRING            Transaction isolation level (RC, RR or SER) [RR]
  --use_fk=N                    Use foreign keys [1]

from sysbench-tpcc.

vadimtk avatar vadimtk commented on July 29, 2024

For PXC you should use --force_pk=1 options, it will create PK on history table. PXC requires to have primary keys on all tables.

from sysbench-tpcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.