{"id":51188819,"url":"https://github.com/dveeden/tidb-migration-advisor","last_synced_at":"2026-06-27T13:01:51.367Z","repository":{"id":366983359,"uuid":"1163882190","full_name":"dveeden/tidb-migration-advisor","owner":"dveeden","description":"Migration advisor for migrations to TiDB","archived":false,"fork":false,"pushed_at":"2026-02-22T10:11:30.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-24T05:41:37.882Z","etag":null,"topics":["advisor","migration","mysql","tidb"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dveeden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-22T09:55:09.000Z","updated_at":"2026-02-22T10:12:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dveeden/tidb-migration-advisor","commit_stats":null,"previous_names":["dveeden/tidb-migration-advisor"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dveeden/tidb-migration-advisor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dveeden%2Ftidb-migration-advisor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dveeden%2Ftidb-migration-advisor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dveeden%2Ftidb-migration-advisor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dveeden%2Ftidb-migration-advisor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dveeden","download_url":"https://codeload.github.com/dveeden/tidb-migration-advisor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dveeden%2Ftidb-migration-advisor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34854180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advisor","migration","mysql","tidb"],"created_at":"2026-06-27T13:01:50.498Z","updated_at":"2026-06-27T13:01:51.360Z","avatar_url":"https://github.com/dveeden.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TiDB Migration Checker\n\nChecks queries to see which ones may not work with TiDB\n\n## Usage\n\nFor a single query\n\n```\n$ ./tidb-migration-advisor -query 'SELECT 1 FOR UPDATE SKIP LOCKED'\n```\n\nFor a file with multiple queries\n\n```\n./tidb-migration-advisor -file dump.sql\n```\n\nTo fetch information from a server\n\n```\n./tidb-migration-advisor -dsn 'root@127.0.0.1:3306/test'\n```\n\n```\n$ ./tidb-migration-advisor -h\nUsage of ./tidb-migration-advisor:\n  -dsn string\n    \tMySQL datasource name\n  -error-only\n    \tonly show reports with errors (only for lists of text reports)\n  -file string\n    \tMySQL datasource name\n  -format string\n    \toutput format: json or text (default \"json\")\n  -query string\n    \tquery string\n  -show-parsing-info\n    \tshow query parsing details, like AST\n```\n\n## Example\n\n```\n$ ./tidb-migration-advisor -query 'CREATE TABLE t AS SELECT 1'\nQuery Compatibility Report:\n{\n  \"query\": \"CREATE TABLE t AS SELECT 1\",\n  \"table\": {\n    \"schema\": \"\",\n    \"table\": \"\"\n  },\n  \"query_restored\": \"CREATE TABLE `t` AS SELECT 1\",\n  \"parser_error\": \"\",\n  \"checker_errors\": [\n    \"CREATE TABLE...SELECT is not supported\"\n  ],\n  \"advise\": null\n}\n```\n\n```\n$ ./tidb-migration-advisor -query 'CREATE TABLE t AS SELECT 1' -format text\nQuery Compatibility Report:\n----------------------------------------------------------------\nQuery: CREATE TABLE t AS SELECT 1\n❌ Check error 0: CREATE TABLE...SELECT is not supported\n```\n\n## Related resources\n\n- https://docs.pingcap.com/tidb/stable/mysql-compatibility/\n- [MySQL 8.0 Compatibility](https://github.com/pingcap/tidb/issues/7968)\n- https://docs.pingcap.com/tidb/stable/migrate-from-mariadb/\n\n## Tested\n\n- If query is parsed by the TiDB parser\n- If any functions are known TiDB functions\n- Various checks for statements and options that are parsed, but are known not to work.\n\n## Not tested\n\n- If table and column names actually exist.\n- If arguments to a function are valid.\n- Combination of charset and collation make sense\n- Dependencies between operations for ALTER statements\n\n## Development\n\n### Resources\n\n- https://pkg.go.dev/github.com/pingcap/tidb/pkg/parser\n- https://pkg.go.dev/github.com/pingcap/tidb/pkg/parser/ast\n\n### TODO \u0026 Ideas\n\n- Add query source for MySQL binlog (DDL statements)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdveeden%2Ftidb-migration-advisor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdveeden%2Ftidb-migration-advisor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdveeden%2Ftidb-migration-advisor/lists"}