Error in table pageHistory after backup/restore #5754
Unanswered
lordslair
asked this question in
Help / Questions
Replies: 2 comments
-
Same situation here, on debian 11. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@lordslair It seems to do the job. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone
I installed previously WikiJS on a MariaDb server.
Due to some changes, I had to migrate to a MySQL server
I used a MariaDB dump I already have, and imported it into MySQL.
During import, I had errors on
pageHistory.extra
field and the default valueMySQL doesn't allow that:
#1101 - BLOB, TEXT, GEOMETRY or JSON column 'extra' can't have a default value
So I ALTERed the table to be able to do the import, and I thought I could be fine like that.
But, no (lol).
I suppose it's due to differences from your driver
mariadb
I used in the past which allowed thisAnd now, as I'm using the
mysql
driver with a MySQL server, it can't work like that anymoreDo you have any hints on what I can do here ?
I searched in the previous threads and didn't find any related questions
I added in attachment my actual config. I can provide more details if needed
TL;DR: How to properly migrate from MariaDB > MySQL, and dealing with
pageHistory.extra
default valueBeta Was this translation helpful? Give feedback.
All reactions