# Cannot find MySQL driver after upgrading from 15.1.4 to 15.2.2

**URL:** <https://community.bloomreach.com/t/cannot-find-mysql-driver-after-upgrading-from-15-1-4-to-15-2-2/3741>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [March 27, 2023, 3:28pm UTC](https://community.bloomreach.com/t/cannot-find-mysql-driver-after-upgrading-from-15-1-4-to-15-2-2/3741 "2023-03-27T15:28:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanboonstra](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@stefanboonstra](https://community.bloomreach.com/u/stefanboonstra)\
**Post date:** [March 27, 2023, 3:28pm UTC](https://community.bloomreach.com/t/cannot-find-mysql-driver-after-upgrading-from-15-1-4-to-15-2-2/3741/1 "2023-03-27T15:28:29Z")

</div>

Hi all,

We are currently upgrading our self-hosted BRXM instances from 15.1.4 to 15.2.2. We followed the upgrade guides ([generic](https://xmdocumentation.bloomreach.com/about/upgrade/minor-upgrades.html), and [version specific](https://xmdocumentation.bloomreach.com/library/upgrade-minor-versions/upgrade-15.1-to-15.2.html)) and the Docker build completes successfully.

However, the BRXM 15.2.2 Docker container fails to run, giving the following error:

```auto
b2beu-brxm> cp: cannot stat '/brxm/db-drivers/mysql/.': No such file or directory

```

When looking at the files of the BRXM 15.2.2 container we can see that only the PostgreSQL driver is there:

```auto
brxm/db-drivers/
brxm/db-drivers/postgres/
brxm/db-drivers/postgres/postgresql-42.2.5.jar

```

Whereas the BRXM 15.1.4 container does have the MySQL driver file:

```auto
brxm/db-drivers/
brxm/db-drivers/mysql/
brxm/db-drivers/mysql/mysql-connector-java-8.0.16.jar
brxm/db-drivers/postgres/
brxm/db-drivers/postgres/postgresql-42.2.5.jar

```

The only files that we updated for the upgrade are the following:

```auto
cms-depe‎ndencies‎/pom‎.xml‎ (`hippo-addon-urlrewriter-module-repository` to `hippo-addon-urlrewriter-cms-dependencies`)
site/co‎mponents/‎pom‎.xml‎ (`hippo-addon-urlrewriter-module-hst` to `hippo-addon-urlrewriter-site-dependencies`)
pom.xml‎ (`hippo-cms7-enterprise-release` version change)

```

Did we miss any steps? Any help would be appreciated, thanks in advance!

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [March 27, 2023, 4:17pm UTC](https://community.bloomreach.com/t/cannot-find-mysql-driver-after-upgrading-from-15-1-4-to-15-2-2/3741/2 "2023-03-27T16:17:33Z")

</div>

Hi,  
I can’t pinpoint it right now but this probably has to do with using the new Maven coordinates `com.mysql:mysql-connector-j`, see [https://issues.onehippo.com/browse/CMS-15288](https://issues.onehippo.com/browse/CMS-15288)

HTH  
Jeroen

---

<div class="post-metadata">

**Author:** ![stefanboonstra](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@stefanboonstra](https://community.bloomreach.com/u/stefanboonstra)\
**Post date:** [March 28, 2023, 12:06pm UTC](https://community.bloomreach.com/t/cannot-find-mysql-driver-after-upgrading-from-15-1-4-to-15-2-2/3741/3 "2023-03-28T12:06:39Z")

</div>

Thanks for the really quick response, Jeroen! The new Maven coordinates were indeed causing the problem.

The fix:

1. Open `docker-db-libs.xml`
2. Change `mysql:mysql-connector-java` to `com.mysql:mysql-connector-j`

Documentation: [https://blogs.oracle.com/mysql/post/mysql-connectorj-has-new-maven-coordinates](https://blogs.oracle.com/mysql/post/mysql-connectorj-has-new-maven-coordinates)
