{
 "kind": "tool",
 "slug": "mysql-connector-python",
 "path": "tools/mysql-connector-python/",
 "name": "MySQL Connector/Python",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Databases, ORMs and clients",
   "tools/databases-orms/"
  ]
 ],
 "lead": "Official Python driver for connecting to and querying MySQL databases.",
 "chips": [
  {
   "label": "Databases, ORMs and clients",
   "path": "tools/databases-orms/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install mysql-connector-python"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/mysql/mysql-connector-python"
  },
  {
   "label": "Website",
   "href": "https://dev.mysql.com/doc/connector-python/en/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "GNU GPLv2 (with FOSS License Exception)",
   "status": "cond",
   "sub": "Share your code if you ship it",
   "quote": null,
   "note": "License from PyPI license field.",
   "src": "https://github.com/mysql/mysql-connector-python"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 14, 2026",
   "note": "",
   "src": "https://github.com/mysql/mysql-connector-python"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "7 projects",
   "status": "info",
   "sub": "#46 of 120 in its category",
   "note": "Dependency in 7 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What MySQL Connector/Python does",
   "parts": [
    {
     "t": "prose",
     "text": "Official Python driver for connecting to and querying MySQL databases."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "MySQL Connector/Python popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "49",
       "of": "/ 100",
       "l": "Gid Score, #2123 overall"
      },
      {
       "n": "5.9M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "949",
       "l": "GitHub stars"
      },
      {
       "n": "7",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How MySQL Connector/Python is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "MySQL Connector/Python is a dependency in 7 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 72 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is SQLAlchemy (181 projects).",
      "Projects that use it most often also use python-dotenv (75.0%), pandas (73.6%), Requests (72.2%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "5 projects, 0.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 75.0% of its projects",
       "v": "python-dotenv",
       "path": "tools/python-dotenv/"
      },
      {
       "l": "In 73.6% of its projects",
       "v": "pandas",
       "path": "tools/pandas/"
      },
      {
       "l": "In 72.2% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 62.5% of its projects",
       "v": "OpenAI Python Library",
       "path": "tools/openai-pypi/"
      },
      {
       "l": "In 55.6% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      },
      {
       "l": "In 55.6% of its projects",
       "v": "PyYAML",
       "path": "tools/pyyaml/"
      },
      {
       "l": "In 55.6% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 52.8% of its projects",
       "v": "FastAPI",
       "path": "tools/fastapi/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about MySQL Connector/Python",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Databases, ORMs and clients",
       "path": "tools/databases-orms/",
       "items": [
        {
         "text": "pg",
         "path": "tools/pg/"
        },
        {
         "text": "Drizzle ORM",
         "path": "tools/drizzle-orm/"
        },
        {
         "text": "Prisma",
         "path": "tools/prisma/"
        },
        {
         "text": "Drizzle Kit",
         "path": "tools/drizzle-kit/"
        },
        {
         "text": "better-sqlite3",
         "path": "tools/better-sqlite3/"
        },
        {
         "text": "Alembic",
         "path": "tools/alembic/"
        },
        {
         "text": "Neon Serverless Driver",
         "path": "tools/neondatabase/"
        },
        {
         "text": "psycopg",
         "path": "tools/psycopg/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "MySQL Connector/Python",
       "me": true,
       "facts": [
        "GNU GPLv2 (with FOSS License Exception)",
        "Gid 49",
        "5.9M/wk"
       ]
      },
      {
       "name": "SQLAlchemy",
       "why": "Python SQL toolkit and object-relational mapper for database abstraction.",
       "path": "tools/sqlalchemy/",
       "facts": [
        "MIT",
        "Gid 80",
        "105M/wk"
       ]
      },
      {
       "name": "psycopg2",
       "why": "Popular PostgreSQL adapter for Python with full database access and query execution.",
       "path": "tools/psycopg2-binary/",
       "facts": [
        "LGPL",
        "Gid 71",
        "55.6M/wk"
       ]
      },
      {
       "name": "PyMySQL",
       "why": "Pure Python MySQL database driver for database operations.",
       "path": "tools/pymysql/",
       "facts": [
        "MIT",
        "Gid 65",
        "19.9M/wk"
       ]
      }
     ],
     "more": "Compare MySQL Connector/Python with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install mysql-connector-python"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for MySQL Connector/Python yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi mysql-connector-python"
  ],
  [
   "Category",
   "Databases, ORMs and clients"
  ],
  [
   "License",
   "GNU GPLv2 (with FOSS License Exception)"
  ],
  [
   "Gid Score",
   "48.7"
  ],
  [
   "Rank in category",
   "#46 of 120"
  ],
  [
   "GitHub",
   "mysql/mysql-connector-python"
  ],
  [
   "Last change",
   "Nov 14, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/mysql.png"
}