br icon indicating copy to clipboard operation
br copied to clipboard

When using BR Restore to TiDB Cloud prompt it will prompt warning "privilege check for 'Update' fail"

Open Rick-lee01 opened this issue 3 years ago • 1 comments

Question

When using BR Restore SQL to restore data to TiDB Cloud , it will prompt warning messages: "privilege check for 'Update' fail". However, it will not prompt warning information if I restore data to OP TiDB. For example: origin_img_v2_595f7043-d577-491e-abe7-847414783fag

The data of table has been restored to TiDB Cloud . In tidb.log ,I just find the follow information. So I need to know the reason for the warning messages. origin_img_v2_7d1f2c3e-0fed-434f-a2a8-7ae36fd96c5g

Rick-lee01 avatar Aug 30 '22 10:08 Rick-lee01

The error is that br wants to update mysql.stats_meta table to update snapshot, count columns of restored table by sql and the tidb returns error of privilege. Please use sql of SHOW GRANTS; to check whether your user has privilege of update for mysql database. And this error doesn't influence the result of restore, because it only updates the statistics information.

WangLe1321 avatar Sep 01 '22 11:09 WangLe1321