docs icon indicating copy to clipboard operation
docs copied to clipboard

Plan replayer requires additional option on connection string when using MySQL

Open terry1purcell opened this issue 1 year ago • 0 comments

Change Request

Please answer the following questions before submitting your issue. Thanks!

  1. Describe what you find is inappropriate or missing in the existing docs.

https://docs.pingcap.com/tidb/dev/sql-plan-replayer

When using plan replayer, import can fail when connecting as MySQL. There is no documented solution or visibility to this issue on the plan replayer page.

  1. Describe your suggestion or addition.

When using plan replayer, it you are using MySQL - you will want to include the recommendation that can be found on this documentation page: https://docs.pingcap.com/tidbcloud/tidb-cloud-import-local-files

The recommendation from that page is: If you use mysql and encounter ERROR 2068 (HY000): LOAD DATA LOCAL INFILE file request rejected due to restrictions on access., you can add --local-infile=true in the connection string.

  1. Provide some reference materials (such as documents and websites) if you could.

Reference provided is from an existing PingCAP documentation page.

terry1purcell avatar Feb 08 '24 17:02 terry1purcell