dosubot[bot] commented on issue #31459:
URL: https://github.com/apache/superset/issues/31459#issuecomment-2544004255
<!-- Greeting -->
Hello, @MVanDerlofske! I'm here to help you with any bugs, questions, or
contributions you may have. Let's get this sorted out together!
<!-- Answer -->
The issue with the Docker Image tagged 4.1.1 for Superset not supporting
MySQL as a datasource is due to the absence of the `mysqlclient` package, which
is necessary for MySQL database connections. Starting from version 4.1.0, the
Docker images do not include database drivers like those for MySQL or Postgres
by default.
To resolve this, you need to manually install the `mysqlclient` package.
Here's how you can do it:
1. Create a `requirements-local.txt` file in the docker directory of your
project.
2. Add `mysqlclient` to this file.
3. Rebuild and restart your Docker containers using the following command:
```bash
docker compose -f docker-compose-non-dev.yml up
```
If you're using a customized Docker image, you should rebuild your local
image with the new driver included by running:
```bash
docker compose build --force-rm
```
Then, relaunch Superset.
For more detailed instructions, you can refer to the Superset documentation
on installing database drivers in Docker images
<sup>[[1]](https://github.com/apache/superset/discussions/31432)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/66ca08a4-ecd7-4258-a97b-7b83b854b930?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/66ca08a4-ecd7-4258-a97b-7b83b854b930?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/66ca08a4-ecd7-4258-a97b-7b83b854b930?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/66ca08a4-ecd7-4258-a97b-7b83b854b930?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/66ca08a4-ecd7-4258-a97b-7b83b854b930?feedback_type=hallucination)
|
[Other](https://app.dosu.dev/response-feedback/66ca08a4-ecd7-4258-a97b-7b83b854b930?feedback_type=other)</sup>
--
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]