Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: TiDB Lightning 全量备份数据出现一下问题
[“select tidb_version() failed, will fallback to ‘select version();’”] [error=“Error 1046: No database selected”]
It’s stuck here with no response and no error logs.
Seeking help from an expert.
Is Lightning connected to MySQL or TiDB?
Could you please provide the environment/version, and if convenient, share the lightning configuration file?
I can connect to the local kv test.
Those two parameters don’t seem quite reasonable there. Status port
I don’t think it’s quite right.
status-port = 10080
pd-addr = “172.16.243.243:2379”
These two are aimed at downstream. How to write it in MySQL? It should not be possible.
Thank you, it’s already resolved. The issue was caused by data insertion into my target MySQL, which led to a database deadlock when using the tiup dumpling command. As a result, I couldn’t read the database I needed to dump, hence the error occurred.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.