pingcap / tidb

TiDB - the open-source, cloud-native, distributed SQL database designed for modern applications.
https://pingcap.com
Apache License 2.0
37.41k stars 5.85k forks source link

Lightning: Schema Precheck Failed when DB/Tables Not Created #36902

Closed dsdashun closed 2 years ago

dsdashun commented 2 years ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

The source data schema file can be used to get out the table structure. The schema check can be executed based on the schema file's table structure, and report the final result.

3. What did you see instead (Required)

Error occurs: check error: cannot read schema 'XXXX' from remote: get http://127.0.0.1:10080/schema/XXXX http status code != 200, message [schema:1049]Unknown database 'XXXX'

4. What is your TiDB version? (Required)

Latest master version

dsdashun commented 2 years ago

/component lightning

dsdashun commented 2 years ago

/severity moderate