dosubot[bot] commented on issue #34417: URL: https://github.com/apache/superset/issues/34417#issuecomment-3138312069
<!-- Greeting --> Hi @2308087369! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> MySQL is missing from the connection options because, starting with Superset 4.1.0, database drivers like `mysqlclient` are no longer bundled by default—you have to install them yourself for MySQL support to appear in the UI. Even though you ran `pip install mysqlclient`, in some environments (especially with conda or when running as root), the package may not be visible to the Python interpreter that runs Superset, or system dependencies may be missing or mismatched. This is the most common cause of the missing MySQL icon and dropdown option [[1]](https://github.com/apache/superset/issues/33875) [[2]](https://github.com/apache/superset/discussions/31431). Here’s what to check: 1. Make sure all required system dependencies are installed: `sudo apt-get install build-essential python3-dev default-libmysqlclient-dev pkg-config` 2. Reinstall `mysqlclient` in the exact Python environment where Superset runs (activate your conda env if using one): `pip install --force-reinstall --no-cache-dir mysqlclient` 3. Restart Superset after installation. 4. If MySQL still doesn’t appear, check the Superset logs for errors like `No module named 'MySQLdb'`. This indicates `mysqlclient` is still not accessible to Superset [[3]](https://github.com/apache/superset/issues/33241). Note: Installing only `mysql-connector-python` is not enough—Superset expects the `MySQLdb` dialect provided by `mysqlclient` for full MySQL support. Using `mysql-connector-python` can cause compatibility issues and is not the default or recommended driver [[4]](https://github.com/apache/superset/issues/33157). The `LD_PRELOAD` workaround is not a standard or documented fix for this issue and is unlikely to help unless you have a very specific library loading problem, which is rare in this context. If you still don’t see MySQL after these steps, double-check that you’re running Superset in the same environment where you installed `mysqlclient`, and share any relevant error logs for further troubleshooting. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/aa5c2288-6657-48d9-bbbf-7bf5791ed349?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/aa5c2288-6657-48d9-bbbf-7bf5791ed349?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/aa5c2288-6657-48d9-bbbf-7bf5791ed349?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/aa5c2288-6657-48d9-bbbf-7bf5791ed349?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/aa5c2288-6657-48d9-bbbf-7bf5791ed349?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/aa5c2288-6657-48d9-bbbf-7bf5791ed349?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/aa5c2288-6657-48d9-bbbf-7bf5791ed349?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34417) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
