# \#mysql

**URL:** https://help.nextcloud.com/tag/mysql/237.md

[Latest](https://help.nextcloud.com/latest.md) · [Categories](https://help.nextcloud.com/categories.md) · [Tags](https://help.nextcloud.com/tags.md)

---

## [Error MariaDB SQLSTATE\[23000\]: Integrity constraint violation: 1052 Column 'file\_id' in WHERE is ambiguous](https://help.nextcloud.com/t/error-mariadb-sqlstate-23000-integrity-constraint-violation-1052-column-file-id-in-where-is-ambiguous/248494)

<div class="topic-metadata">

**Author:** [@Cisco30](https://help.nextcloud.com/u/Cisco30)\
**Replies:** 3\
**Last updated:** [August 30, 2026, 11:15am UTC](https://help.nextcloud.com/t/error-mariadb-sqlstate-23000-integrity-constraint-violation-1052-column-file-id-in-where-is-ambiguous/248494 "2026-08-30T11:15:30Z")

</div>

The Basics Nextcloud Server version (e.g., 29.x.x): 34.0.3 Operating system and version (e.g., Ubuntu 24.04): Debian 13 Web server and version (e.g, Apache 2.4.25): Apache 2 Reverse proxy and version \_(e.g. ngi…

---

## [Doppelte Einträge in oc\_filecache Tabelle](https://help.nextcloud.com/t/doppelte-eintrage-in-oc-filecache-tabelle/247625)

<div class="topic-metadata">

**Author:** [@Woggner](https://help.nextcloud.com/u/Woggner)\
**Replies:** 1\
**Last updated:** [August 3, 2026, 7:55pm UTC](https://help.nextcloud.com/t/doppelte-eintrage-in-oc-filecache-tabelle/247625 "2026-08-03T19:55:24Z")

</div>

Bei welchen Anbieter? Was für ein Server: Lokal Betriebssystem: Linux 6.12.90 + Debian 13.6 (64-bit) Nextcloud Version: Nextcloud Hub 26 Spring (34.0.2) PHP Version: 8.4.24 Welche Datenbank? MySql 11.8.6 Apache 2.4.68 H…

---

## [NC 33: no persistent connections with MySQL](https://help.nextcloud.com/t/nc-33-no-persistent-connections-with-mysql/247356)

<div class="topic-metadata">

**Author:** [@Rudd-O](https://help.nextcloud.com/u/Rudd-O)\
**Replies:** 3\
**Last updated:** [July 27, 2026, 10:24pm UTC](https://help.nextcloud.com/t/nc-33-no-persistent-connections-with-mysql/247356 "2026-07-27T22:24:12Z")

</div>

▶ There’s a few threads on persistent database connections on Nextcloud, but all are closed. I’m running vanilla Nextcloud 33 as shipped with Fedora, with a Redis server for caching, and a MySQL database, all on the sam…

---

## [Hosted instance - Database Backup Options](https://help.nextcloud.com/t/hosted-instance-database-backup-options/244291)

<div class="topic-metadata">

**Author:** [@matt4](https://help.nextcloud.com/u/matt4)\
**Replies:** 5\
**Last updated:** [May 13, 2026, 2:37pm UTC](https://help.nextcloud.com/t/hosted-instance-database-backup-options/244291 "2026-05-13T14:37:46Z")

</div>

I am using a (paid) hosted instance of NextCloud and need to backup the database. I’ve reached out to the provider and they haven’t given me a way to do this. They said, “Please try using the Nextcloud import/export app …

---

## [NCP Backup SQL Dump](https://help.nextcloud.com/t/ncp-backup-sql-dump/233380)

<div class="topic-metadata">

**Author:** [@Martin\_Friebe](https://help.nextcloud.com/u/Martin_Friebe)\
**Replies:** 10\
**Last updated:** [November 14, 2025, 9:13am UTC](https://help.nextcloud.com/t/ncp-backup-sql-dump/233380 "2025-11-14T09:13:21Z")

</div>

▶ Support intro The Basics Nextcloud Server version (e.g., 29.x.x): 31.0.9 Operating system and version (e.g., Ubuntu 24.04): armbian Web server and version (e.g, Apache 2.4.25): apache Is this the first time yo…

---

## [MySql crashes on startup - Snap installation](https://help.nextcloud.com/t/mysql-crashes-on-startup-snap-installation/235106)

<div class="topic-metadata">

**Author:** [@ChrisLend](https://help.nextcloud.com/u/ChrisLend)\
**Replies:** 6\
**Last updated:** [November 10, 2025, 7:41pm UTC](https://help.nextcloud.com/t/mysql-crashes-on-startup-snap-installation/235106 "2025-11-10T19:41:51Z")

</div>

▶ Support intro Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart: Tldr MySql started crashing on startup. Given the error messag…

---

## [Error while migrating nextcloud database from MySQL to PostgreSQL / Foreign keys](https://help.nextcloud.com/t/error-while-migrating-nextcloud-database-from-mysql-to-postgresql-foreign-keys/235416)

<div class="topic-metadata">

**Author:** [@thierry-FreeBSD](https://help.nextcloud.com/u/thierry-FreeBSD)\
**Replies:** 1\
**Last updated:** [November 8, 2025, 8:58pm UTC](https://help.nextcloud.com/t/error-while-migrating-nextcloud-database-from-mysql-to-postgresql-foreign-keys/235416 "2025-11-08T20:58:34Z")

</div>

Nextcloud version: 32.0.0 Operating system and version: FreeBSD 14.3-STABLE Apache version: 2.4.65 PHP version: 8.2.29 Mysql : 8.0.43 Postgresql : 17.6 I’m trying to migrate the nextcloud database from MySQL to Pos…

---

## [Unable to log in and not able to understand the log in nextcloud/data/](https://help.nextcloud.com/t/unable-to-log-in-and-not-able-to-understand-the-log-in-nextcloud-data/234069)

<div class="topic-metadata">

**Author:** [@MonkeyFrog](https://help.nextcloud.com/u/MonkeyFrog)\
**Replies:** 5\
**Last updated:** [October 16, 2025, 10:19am UTC](https://help.nextcloud.com/t/unable-to-log-in-and-not-able-to-understand-the-log-in-nextcloud-data/234069 "2025-10-16T10:19:15Z")

</div>

▶ Support intro Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart: The Basics Nextcloud Server version (e.g., 29.x.x): unknown …

---

## [MySQL utf8mb4\_unicode\_ci collation](https://help.nextcloud.com/t/mysql-utf8mb4-unicode-ci-collation/231945)

<div class="topic-metadata">

**Author:** [@jplitza](https://help.nextcloud.com/u/jplitza)\
**Replies:** 3\
**Last updated:** [September 13, 2025, 3:45pm UTC](https://help.nextcloud.com/t/mysql-utf8mb4-unicode-ci-collation/231945 "2025-09-13T15:45:41Z")

</div>

Hello everyone! with my app fulltextsearch\_sql I’m trying to implement fulltextsearch using only the Nextcloud database, without additional components like Elasticsearch. One problem I have is with MySQL. Nextcloud has…

---

## [Nextcloud 31: Incorrect row format message still showing after updating database](https://help.nextcloud.com/t/nextcloud-31-incorrect-row-format-message-still-showing-after-updating-database/228153)

<div class="topic-metadata">

**Author:** [@mart314](https://help.nextcloud.com/u/mart314)\
**Replies:** 2\
**Last updated:** [July 11, 2025, 10:04pm UTC](https://help.nextcloud.com/t/nextcloud-31-incorrect-row-format-message-still-showing-after-updating-database/228153 "2025-07-11T22:04:24Z")

</div>

The Basics Nextcloud Server version (e.g., 29.x.x): 31.0.6 Operating system and version (e.g., Ubuntu 24.04): Debian 11 Web server and version (e.g, Apache 2.4.25): ? (hosted server) Reverse proxy and version \_…

---

## [MariaDB-Dump in MySQL importieren schlägt fehl ;(](https://help.nextcloud.com/t/mariadb-dump-in-mysql-importieren-schlagt-fehl/226951)

<div class="topic-metadata">

**Author:** [@heinetz](https://help.nextcloud.com/u/heinetz)\
**Replies:** 8\
**Last updated:** [June 17, 2025, 10:57am UTC](https://help.nextcloud.com/t/mariadb-dump-in-mysql-importieren-schlagt-fehl/226951 "2025-06-17T10:57:47Z")

</div>

Hallo Forum, meine NC-Migration von einem zum anderen Hoster war nun scheinbar fast abgeschlossen … Am Ende sind’s die Datenbanken. Ich habe eine MariaDB vom Quellserver exportiert und auf dem Zielserver nur eine MySQL…

---

## [Nextcloud cron job daily throwing some SQL errors](https://help.nextcloud.com/t/nextcloud-cron-job-daily-throwing-some-sql-errors/226577)

<div class="topic-metadata">

**Author:** [@cyb3rx](https://help.nextcloud.com/u/cyb3rx)\
**Replies:** 1\
**Last updated:** [June 9, 2025, 2:35pm UTC](https://help.nextcloud.com/t/nextcloud-cron-job-daily-throwing-some-sql-errors/226577 "2025-06-09T14:35:46Z")

</div>

The Basics Nextcloud Server version (e.g., 29.x.x): Nextcloud Hub 9 (30.0.10) Operating system and version (e.g., Ubuntu 24.04): Rocky Linux 9 Web server and version (e.g, Apache 2.4.25): Apache httpd Reverse p…

---

## [Return on experience, migration from MySQL to Postgresql](https://help.nextcloud.com/t/return-on-experience-migration-from-mysql-to-postgresql/125284)

<div class="topic-metadata">

**Author:** [@fyah](https://help.nextcloud.com/u/fyah)\
**Replies:** 9\
**Last updated:** [May 22, 2025, 3:28am UTC](https://help.nextcloud.com/t/return-on-experience-migration-from-mysql-to-postgresql/125284 "2025-05-22T03:28:21Z")

</div>

Hello, I have migrated my nextcloud 22 intance from MySQL to Postgreql While this activity could seem trivial using the built-in migration command occ db:convert-type --all-apps --clear-schema --password \<password\> pg…

---

## [Upgrade to Nextcloud Hub 10 (31.0.0) Incorrect row format found in your database](https://help.nextcloud.com/t/upgrade-to-nextcloud-hub-10-31-0-0-incorrect-row-format-found-in-your-database/218366)

<div class="topic-metadata">

**Author:** [@scgf](https://help.nextcloud.com/u/scgf)\
**Replies:** 89\
**Last updated:** [May 1, 2025, 10:12pm UTC](https://help.nextcloud.com/t/upgrade-to-nextcloud-hub-10-31-0-0-incorrect-row-format-found-in-your-database/218366 "2025-05-01T22:12:21Z")

</div>

I have the Linuxserver Nextcloud and MariaDB docker containers and today Nextcloud updated to Nextcloud Hub 10 (31.0.0). I am getting error messages: Incorrect row format found in your database. ROW\_FORMAT=Dynamic offer…

---

## [Manually Migrate MySQL to Postgres](https://help.nextcloud.com/t/manually-migrate-mysql-to-postgres/222956)

<div class="topic-metadata">

**Author:** [@2br-2b](https://help.nextcloud.com/u/2br-2b)\
**Replies:** 1\
**Last updated:** [April 20, 2025, 3:29pm UTC](https://help.nextcloud.com/t/manually-migrate-mysql-to-postgres/222956 "2025-04-20T15:29:01Z")

</div>

I have the remnants of a Nextcloud snap server that I’m trying to move to my Kubernetes server. I’ve copied the data directory over, and I’ve loaded the MySQL database on another machine. Now, I want to move the MySQL d…

---

## [Nach Update auf 31.0 Falsches Zeilenformat in deiner Datenbank gefunden](https://help.nextcloud.com/t/nach-update-auf-31-0-falsches-zeilenformat-in-deiner-datenbank-gefunden/218364)

<div class="topic-metadata">

**Author:** [@lugau45](https://help.nextcloud.com/u/lugau45)\
**Replies:** 30\
**Last updated:** [April 10, 2025, 12:03pm UTC](https://help.nextcloud.com/t/nach-update-auf-31-0-falsches-zeilenformat-in-deiner-datenbank-gefunden/218364 "2025-04-10T12:03:24Z")

</div>

Hallo, heute kam ja die 31.0 raus, ich möchte ja immer aktuell sein (ist nicht immer gut) und nun sind hinweise auf der Admin Seite: Falsches Zeilenformat in deiner Datenbank gefunden. ROW\_FORMAT=Dynamic bietet die best…

---

## [Running tests for verify DB engine compatibility](https://help.nextcloud.com/t/running-tests-for-verify-db-engine-compatibility/222198)

<div class="topic-metadata">

**Author:** [@DanBaDo](https://help.nextcloud.com/u/DanBaDo)\
**Replies:** 1\
**Last updated:** [April 9, 2025, 8:33am UTC](https://help.nextcloud.com/t/running-tests-for-verify-db-engine-compatibility/222198 "2025-04-09T08:33:58Z")

</div>

Hi! I’m exploring the posibility of running Nextcloud using TiDB as DB engine. It’s suposed it provides some kind of compatibility whit MySQL, but not a full compatibility. Do you think Nextcloud have automated tests w…

---

## [Lastseen devices/app/token based auth](https://help.nextcloud.com/t/lastseen-devices-app-token-based-auth/220402)

<div class="topic-metadata">

**Author:** [@amateurkicker](https://help.nextcloud.com/u/amateurkicker)\
**Replies:** 3\
**Last updated:** [March 19, 2025, 10:48am UTC](https://help.nextcloud.com/t/lastseen-devices-app-token-based-auth/220402 "2025-03-19T10:48:51Z")

</div>

I’ve seen efforts but no implementation yet, so it might be helpful for someone. with occ user:list you see only web based login’s I want to see the device based auth. also like the mobile app “nc-photos” this is my s…

---

## [Script "nc-sql" - zero config commandline client for the nextcloud database](https://help.nextcloud.com/t/script-nc-sql-zero-config-commandline-client-for-the-nextcloud-database/195088)

<div class="topic-metadata">

**Author:** [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Replies:** 0\
**Last updated:** [June 13, 2024, 11:48pm UTC](https://help.nextcloud.com/t/script-nc-sql-zero-config-commandline-client-for-the-nextcloud-database/195088 "2024-06-13T23:48:10Z")

</div>

nc-sql is a commandline client for the nextcloud database (for MySQL/MariaDB and PostgreSQL, no SQLite3) Whenever you need to quickly make a few queries in the database, but you don’t want to look up the password and …

---

## [Can't seem to get the .well-known links working](https://help.nextcloud.com/t/cant-seem-to-get-the-well-known-links-working/212922)

<div class="topic-metadata">

**Author:** [@Ravioli](https://help.nextcloud.com/u/Ravioli)\
**Replies:** 4\
**Last updated:** [January 24, 2025, 5:50pm UTC](https://help.nextcloud.com/t/cant-seem-to-get-the-well-known-links-working/212922 "2025-01-24T17:50:01Z")

</div>

Although I realize tons of topics on this subject have already been started and answered, for the life of me I can’t seem to get the .well-known links working on my environment. Could you please jump aboard my troublesho…

---

## [2006 MySQL server has gone away](https://help.nextcloud.com/t/2006-mysql-server-has-gone-away/215617)

<div class="topic-metadata">

**Author:** [@cdaniel](https://help.nextcloud.com/u/cdaniel)\
**Replies:** 1\
**Last updated:** [January 22, 2025, 8:20pm UTC](https://help.nextcloud.com/t/2006-mysql-server-has-gone-away/215617 "2025-01-22T20:20:56Z")

</div>

Hallo, ich bin leider gar kein erfahrener Nutzer, auch wenn ich Nextcloud schon seit OwnCloud bis heute zufriedenstellend nutze. Mein Nextcloud habe ich bei all-inkl.com in einer Shared Webspace Umgebung aufgesetzt, ha…

---

## [How to identify in DB what files are locked?](https://help.nextcloud.com/t/how-to-identify-in-db-what-files-are-locked/203805)

<div class="topic-metadata">

**Author:** [@adrch](https://help.nextcloud.com/u/adrch)\
**Replies:** 0\
**Last updated:** [September 13, 2024, 3:56pm UTC](https://help.nextcloud.com/t/how-to-identify-in-db-what-files-are-locked/203805 "2024-09-13T15:56:53Z")

</div>

In my Nextcloud MySql database I see: mysql\> SELECT count(\*) FROM oc\_file\_locks; +----------+ | count(\*) | +----------+ | 3145 | +----------+ 1 row in set (0.00 sec) mysql\> select \* from oc\_file\_locks LIMIT 3; +---…

---

## [How to gracefully stop occ files scan?](https://help.nextcloud.com/t/how-to-gracefully-stop-occ-files-scan/203915)

<div class="topic-metadata">

**Author:** [@adrch](https://help.nextcloud.com/u/adrch)\
**Replies:** 5\
**Last updated:** [October 6, 2024, 6:59am UTC](https://help.nextcloud.com/t/how-to-gracefully-stop-occ-files-scan/203915 "2024-10-06T06:59:55Z")

</div>

I have NC v29.0.7 on Ubuntu 23.10 with MySql. I started few hours ago occ files:scan --all, how can I stop it gracefully? ideally the db should remain in a consistent state, e.g. there should remain no bad file locks in…

---

## [Need help with restoring mysql database after deletion](https://help.nextcloud.com/t/need-help-with-restoring-mysql-database-after-deletion/205416)

<div class="topic-metadata">

**Author:** [@Zqpvr01](https://help.nextcloud.com/u/Zqpvr01)\
**Replies:** 3\
**Last updated:** [October 2, 2024, 10:17am UTC](https://help.nextcloud.com/t/need-help-with-restoring-mysql-database-after-deletion/205416 "2024-10-02T10:17:26Z")

</div>

Support introSorry to hear you’re facing problems :slightly\_frowning\_face: help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where …

---

## [Error when inserting \`false\` into a boolean column with underscore in column name](https://help.nextcloud.com/t/error-when-inserting-false-into-a-boolean-column-with-underscore-in-column-name/205046)

<div class="topic-metadata">

**Author:** [@Claw8030](https://help.nextcloud.com/u/Claw8030)\
**Replies:** 11\
**Last updated:** [September 28, 2024, 7:48pm UTC](https://help.nextcloud.com/t/error-when-inserting-false-into-a-boolean-column-with-underscore-in-column-name/205046 "2024-09-28T19:48:52Z")

</div>

Inserting false into a boolean column yields an error ONLY when the column name includes an underscore. Passing true or null works. Also, if the column name does not include an underscore, the error does not occur. I’m …

---

## [There is a problem in the comments section of the NextCloud](https://help.nextcloud.com/t/there-is-a-problem-in-the-comments-section-of-the-nextcloud/204841)

<div class="topic-metadata">

**Author:** [@khayyen](https://help.nextcloud.com/u/khayyen)\
**Replies:** 13\
**Last updated:** [September 25, 2024, 3:28pm UTC](https://help.nextcloud.com/t/there-is-a-problem-in-the-comments-section-of-the-nextcloud/204841 "2024-09-25T15:28:28Z")

</div>

Nextcloud version : 29.0.7 Operating system and version : Ubuntu 22 Apache or nginx version: Apache PHP version : 8.1.2 The issue you are facing: Is this the first time you’ve seen this error? (Y/N): Steps to repl…

---

## [Tables appear empy (no entries)](https://help.nextcloud.com/t/tables-appear-empy-no-entries/204187)

<div class="topic-metadata">

**Author:** [@fireword59](https://help.nextcloud.com/u/fireword59)\
**Replies:** 0\
**Last updated:** [September 17, 2024, 12:49pm UTC](https://help.nextcloud.com/t/tables-appear-empy-no-entries/204187 "2024-09-17T12:49:17Z")

</div>

\[/details\] Nextcloud version = 29.0.5 Operating system and version = CentOs 9 Stream Apache version = Apache 2.4.57 PHP version = 8.2 \[details=“Support intro”\] After following this series of steps: https://docs.ne…

---

## [High CPU Usage on NextCloud Server When Uploading Multiple Small Files](https://help.nextcloud.com/t/high-cpu-usage-on-nextcloud-server-when-uploading-multiple-small-files/197621)

<div class="topic-metadata">

**Author:** [@alison.costa](https://help.nextcloud.com/u/alison.costa)\
**Replies:** 3\
**Last updated:** [September 13, 2024, 4:02pm UTC](https://help.nextcloud.com/t/high-cpu-usage-on-nextcloud-server-when-uploading-multiple-small-files/197621 "2024-09-13T16:02:53Z")

</div>

I have a NextCloud server, and I’m experiencing high CPU usage issues when uploading multiple files and folders. The server performs very well 99% of the time, staying below 2% CPU usage and 40% memory usage. However, w…

---

## [oc\_filecache\_extended is corrupted, how to fix?](https://help.nextcloud.com/t/oc-filecache-extended-is-corrupted-how-to-fix/201581)

<div class="topic-metadata">

**Author:** [@tdunks](https://help.nextcloud.com/u/tdunks)\
**Replies:** 0\
**Last updated:** [August 23, 2024, 2:02pm UTC](https://help.nextcloud.com/t/oc-filecache-extended-is-corrupted-how-to-fix/201581 "2024-08-23T14:02:28Z")

</div>

I started getting the following error repeatedly and am unsure how to fix it. General error: 1877 Table \`nextcloud\`.\`oc\_filecache\_extended\` is corrupted. Please drop the table and recreate. I cant find any modern topic…

---

## [Nextcloud creating never-ending mysql threads](https://help.nextcloud.com/t/nextcloud-creating-never-ending-mysql-threads/157752)

<div class="topic-metadata">

**Author:** [@wonx](https://help.nextcloud.com/u/wonx)\
**Replies:** 3\
**Last updated:** [August 14, 2024, 11:17am UTC](https://help.nextcloud.com/t/nextcloud-creating-never-ending-mysql-threads/157752 "2024-08-14T11:17:47Z")

</div>

Support introSorry to hear you’re facing problems :slightly\_frowning\_face: help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where …

[Next page](https://help.nextcloud.com/tag/mysql/237.md?match_all_tags=true&page=1&tags%5B%5D=mysql)
