Error 9006: GC life time is shorter than transaction duration when logging into the database

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 登录数据库时,出现报错9006 GC life time is shorter than transaction duration

| username: 裤衩儿飞上天

[Test Environment for TiDB]
[TiDB Version]
[Reproduction Path] What operations were performed to encounter the issue
[Encountered Issue: Phenomenon and Impact]
When logging into the database through the client on a personal computer, an error 9006 is directly reported

➜  ~ mycli stage
(9006, 'GC life time is shorter than transaction duration, transaction starts at 2024-06-05 03:50:55.675 +0800 CST, GC safe point is 2024-07-02 14:03:37.956 +0800 CST')
➜  ~

Subsequent logins do not encounter the issue

TiDB 5.7.25
mycli 1.26.1
Home: http://mycli.net
Bug tracker: https://github.com/dbcli/mycli/issues
Thanks to the contributor - bitkeen
stage TiDB root@10.25.6.52:test>select * from mysql.tidb;