# Occ db:convert-type fails to convert

**URL:** <https://help.nextcloud.com/t/occ-db-convert-type-fails-to-convert/218150>\
**Category:** ℹ️ Support\
**Tags:** nc30\
**Created:** [February 22, 2025, 10:27pm UTC](https://help.nextcloud.com/t/occ-db-convert-type-fails-to-convert/218150 "2025-02-22T22:27:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbeard](https://help.nextcloud.com/user_avatar/help.nextcloud.com/paulbeard/32/11147_2.png) [@paulbeard](https://help.nextcloud.com/u/paulbeard)\
**Post date:** [February 22, 2025, 10:27pm UTC](https://help.nextcloud.com/t/occ-db-convert-type-fails-to-convert/218150/1 "2025-02-22T22:27:33Z")

</div>

nextcloud 30  
nginx  
previously working install that got buggered up during the upgrade from 30.0.5. finally almost working and decided for perverse reasons to switch to mysql.

```auto
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory in /usr/local/www/nextcloud/lib/private/DB/Connection.php:233
Stack trace:
#0 /usr/local/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(458): OC\DB\Connection->connect()

```

the database is there and accessible

```auto
nextcloud@localhost [(none)]> use nextcloud;
Database changed
nextcloud@localhost [nextcloud]> show tables;
+-----------------------------+
| Tables_in_nextcloud |
+-----------------------------+
| oc_accounts |
| oc_accounts_data |
| oc_activity |
| oc_activity_mq |
| oc_addressbookchanges |
| oc_addressbooks |
| oc_appconfig |
| oc_appconfig_ex |
| oc_authorized_groups |
| oc_authtoken |
| oc_bruteforce_attempts |
| oc_calendar_invitations |

```

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [February 23, 2025, 5:50pm UTC](https://help.nextcloud.com/t/occ-db-convert-type-fails-to-convert/218150/2 "2025-02-23T17:50:22Z")

</div>

Hi @paulbeard, unfortunately a lot of information to help you is missing as you ignored the [required support template](https://help.nextcloud.com/t/support-template-please-use-this-when-you-request-support/137402). Please edit into your post and add as many information as possible. This will give us the technical info and logs needed to help you!

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [May 24, 2025, 5:50pm UTC](https://help.nextcloud.com/t/occ-db-convert-type-fails-to-convert/218150/3 "2025-05-24T17:50:26Z")

</div>

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