Skip to content

Commit 85f28c2

Browse files
author
Null not nil
authored
faq: add multistatement faq (pingcap#4029)
1 parent 2170933 commit 85f28c2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

faq/tidb-faq.md

+10
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ update mysql.tidb set variable_value='30m' where variable_name='tikv_gc_life_tim
140140

141141
Check whether `tidb_disable_txn_auto_retry` is set to `on`. If so, set it to `off`; if it is already `off`, increase the value of `tidb_retry_limit` until the error no longer occurs.
142142

143+
#### ERROR 1105 (HY000): client has multi-statement capability disabled
144+
145+
This error might occur after upgrading from an earlier version of TiDB. To prevent against SQL injection attacks, TiDB now prevents multiple queries being executed in the same `COM_QUERY` call by default.
146+
147+
Check the documentation for your client driver for instructions on how to enable multiple statements. i.e:
148+
149+
* [go-sql-driver](https://github.com/go-sql-driver/mysql#multistatements) (`multiStatements`)
150+
* [Connector/J](https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-configuration-properties.html) (`allowMultiQueries`)
151+
* PHP [mysqli](https://dev.mysql.com/doc/apis-php/en/apis-php-mysqli.quickstart.multiple-statement.html) (`mysqli_multi_query`)
152+
143153
### MySQL native error messages
144154

145155
#### ERROR 2013 (HY000): Lost connection to MySQL server during query

0 commit comments

Comments
 (0)