External Database Source - MySQL
This module extends base_external_dbsource, allowing you to connect to foreign MySQL databases using SQLAlchemy.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Adds MySQL as a connector option for external database sources in Odoo, so users can connect to and query a MySQL database from the External Database Sources screen.
This module extends the External Database Sources feature so that a MySQL database can be used as a connection type. On the external database source form, the Connector field gains a new "MySQL" choice alongside the existing options.
Once a source is set to MySQL, Odoo can open a connection to that database, run SQL queries against it, and close the connection again. Query results are returned as rows, and when metadata is requested the column names are returned as well.
- Adds the "MySQL" value to the
connectorselection onbase.external.dbsource. - Provides the connection open, execute and close logic used when the connector is MySQL.
- Requires the Python libraries
sqlalchemyandmysqlclientto be installed on the server. - Ships a demo external database source record named "MySQL Demo" preconfigured with the MySQL connector.
It does not add its own menus or screens; everything appears inside the existing External Database Sources area provided by the base module. The connection details (server, database, user and password) are entered on the source record itself. This module only supplies the MySQL-specific plumbing, so any querying or use of the returned data is handled by the base external database source functionality.
Depends on
Models and fields (1)
- base.external.dbsource · extends an existing modelconnector
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 6 confirmed, 3 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/server-backend.
terminal Installation and usage
OCA documentation · Odoo 18.0Installation
Source · Odoo 18.0To install this module, you need to:
- Install
libmysqlclient-devpackage (default-libmysqlclient-devon Debian) - Install
sqlalchemyandmysqlclientpython libraries
Configuration
Source · Odoo 18.0To configure this module, you need to:
- Database sources can be configured in Settings \> Technical \> Database Structure \> Database sources.
Usage
Source · Odoo 18.0To use this module:
- Go to Settings \> Technical \> Database Structure \> Database Sources
- Click on Create to enter the following information:
- Datasource name??
- Pasword
- Connector: Choose the database to which you want to connect
- Connection string: Specify how to connect to database
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.