{
  "id": "go/sql-unsupported-database-driver",
  "signature": "error: sql: unknown driver \"mysql\" (forgotten import?)",
  "signature_zh": "错误：sql：未知驱动\"mysql\"（忘记导入？）",
  "regex": "error:\\ sql:\\ unknown\\ driver\\ \"mysql\"\\ \\(forgotten\\ import\\?\\)",
  "domain": "go",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "未导入数据库驱动包，如github.com/go-sql-driver/mysql。",
  "root_cause_type": "generic",
  "root_cause_zh": "未导入数据库驱动包，如github.com/go-sql-driver/mysql。",
  "versions": [
    {
      "version": "1.19",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "驱动未导入，无法注册。",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "驱动名称不匹配。",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 1.0,
      "how": "导入驱动包：\nimport _ \"github.com/go-sql-driver/mysql\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "检查驱动名称是否正确，如\"postgres\"需要导入pgx。",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-08-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}