Skip to content

How to migrate pads to new etherpad #5708

Answered by BettinaKr
BettinaKr asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I was able to solve the problem.
Reason was a different charset.
Old charset was utf8mb3, new charset is utf8mb4.
Therefore, after importing the old database I had to execute the following queries in mysql:

ALTER DATABASE `mydatabase` CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin;
ALTER TABLE `mydatabase`.`store` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
ALTER TABLE `mydatabase`.`store` CHANGE `key` `key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL;
ALTER TABLE `mydatabase`.`store` CHANGE `value` `value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL;

Hope this might help others with the same problem.

All the best.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BettinaKr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant