# ODBC and MySQL connectivity with Root 6.36 (and beyond)

**URL:** <https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065>\
**Category:** ROOT\
**Created:** [August 22, 2025, 1:34pm UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065 "2025-08-22T13:34:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtakacs](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@mtakacs](https://root-forum.cern.ch/u/mtakacs)\
**Post date:** [August 22, 2025, 1:34pm UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065/1 "2025-08-22T13:34:52Z")

</div>

* * *

Dear Root Dev-Team,

I would like to inquire why the ODBC and MySQL connectivity was deprecated / removed in Root 6.36 (and following versions)?  
At our institute, we are relying on the pre-compiled distributions of ROOT for Windows, because our IT policy only provides support for Windows-based PCs.  
We wanted to update our Root distribution from 6.34.04 to 6.36.02. However, it broke all our code requiring SQL-server connections, so we had to roll back.

Is it still somehow possible to connect to a MariaDB or MySQL server under Windows with or without using ODBC in Root 6.36.02?

_ROOT Version:_ 6.36.02  
_Platform:_ Windows 11  
_Compiler:_ Visual Studio 17.12.2

* * *

---

<div class="post-metadata">

**Author:** ![devajith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/devajith/32/37165_2.png) [@devajith](https://root-forum.cern.ch/u/devajith)\
**Post date:** [August 22, 2025, 2:35pm UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065/2 "2025-08-22T14:35:28Z")

</div>

Hi @mtakacs,

Thanks for reporting this. The main reason we decided to deprecate (and later removed) was that we weren’t aware of anyone using `ODBC` at the time:

> <https://github.com/root-project/root/pull/17423>
>
> All of them require (optional) dependencies for very little use.
> 
> FYI @andresa…iler

We’ll discuss this and see what we can do. Adding @bellenot, @Danilo in the loop.

Cheers,

Dev

---

<div class="post-metadata">

**Author:** ![mguigue](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/edb3f5/32.png) [@mguigue](https://root-forum.cern.ch/u/mguigue)\
**Post date:** [September 4, 2025, 5:54am UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065/3 "2025-09-04T05:54:25Z")

</div>

Hello, same here, in the T2K/ND280 software stack we rely on the TMySQLXXX classes to access our databases. Any idea how to proceed?

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [September 18, 2025, 5:54am UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065/4 "2025-09-18T05:54:33Z")

</div>

Closed on September 18, 2025, 5:54am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [September 30, 2025, 8:29am UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065/5 "2025-09-30T08:29:23Z")

</div>

Opened on September 30, 2025, 8:29am UTC



---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 15, 2025, 11:28am UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065/6 "2025-12-15T11:28:38Z")

</div>

Is there any decision concerning this problem?  
The `mysql`, `odbc`, and `pgsql` build options have been completely removed in ROOT 6.38.  
Do you plan to restore them in the future?  
If not, do you plan to provide any “replacements”?

These options are still present (“deprecated”) in ROOT 6.36, but you do not provide (your) binary distributions with them switched “on”.  
According to your [“Release and Support Schedule”](https://root.cern/install/all_releases/), ROOT 6.36 will be maintained for the next 5 years or so (until 2030).  
Could you then please start building your “official” ROOT 6.36 binary distributions so that these features are “supported” (“compiled in”) in them by default?  
I suppose this would really help people from non-LHC experiments (those who currently need them as well).

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 17, 2025, 3:30pm UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065/7 "2025-12-17T15:30:47Z")

</div>

> [@Wile\_E\_Coyote](#):
>
> Could you then please start building your “official” ROOT 6.36 binary distributions so that these features are “supported” (“compiled in”) in them by default?

Considered: for the subset of platforms that had binaries with odbc/mysql/pgsql enabled in 6.34, new 6.36 patch releases until 2030 will have them again enabled:

> <https://github.com/root-project/root/pull/20726>
>
> A compromise suggested by https://root-forum.cern.ch/t/odbc-and-mysql-connectivi…ty-with-root-6-36-and-beyond/64065/6 would be to leave 6.38/6.40 with completely removed SQL support, but continue providing binaries of 6.36 that use pgsql/mysql for the next 5 years.
> 
> This explores what the CI looks like when reenabling those options.

If you build ROOT 6.36 from source, you will still have to enable them during the CMake command (and will get a deprecation warning).

As far as I know are no replacements foreseen for these. As I understood from the ROOT workshop, for small features not heavily used by many users but still quite often used by a few users, that are getting removed from ROOT to easen code maintenance, core developers are offering assistance in converting them to an external library reviewed and maintained by the community that can be easily called on top of ROOT via CMake or as a header-only thing.

Then, there is always the option to have a branch in one’s 6.38 (or future 6.40) fork where one reverts [[sql] remove deprecated options and code by ferdymercury · Pull Request #18634 · root-project/root · GitHub](https://github.com/root-project/root/pull/18634) and then builds from that source.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 18, 2025, 11:06am UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065/8 "2025-12-18T11:06:39Z")

</div>

> [@ferhue](#):
>
> If you build ROOT 6.36 from source, you will still have to enable them during the CMake command (and will get a deprecation warning).

The easiest way is to patch the unpacked ROOT 6.36 source code, e.g.:

`sed -i -E -e '{s/(mysql|odbc|pgsql) OFF/\1 ON/}' root-6-36-00-patches/cmake/modules/RootBuildOptions.cmake`

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [March 1, 2026, 7:00am UTC](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065/9 "2026-03-01T07:00:38Z")

</div>

Closed on March 1, 2026, 7:00am UTC

This topic was automatically closed after 151 days. New replies are no longer allowed.
