Database migration manually for memos #3108
Replies: 4 comments
-
I think it's best to post about this in discussions page |
Beta Was this translation helpful? Give feedback.
-
Hi,
I suspect a a problem with a character on the dump. I will try to sort this out and post the solution if I found it, meanwhile if someone is willing to help you can :-) Have a nice sunday. |
Beta Was this translation helpful? Give feedback.
-
请问有没有SQLite to MySQL的教程或者工具可以一键转换? |
Beta Was this translation helpful? Give feedback.
-
follow this doc in Chinese |
Beta Was this translation helpful? Give feedback.
-
Describe the solution you'd like
I'm glad to see memos support database now, very thanks to all the contributors
Here is my migration note about how to migrate sqlite to postgres database, I think it also works on mysql.
Type of feature
Documentation
Additional context
pre migration
backup sqlite file to local
step1. create database and then set memos enviornment
step2. memos startup
start memos, auto create table/schema in postgres db, after service start finish(the console show memos logo), stop memos now.
step3. truncate data in db(conflict with
server_setting
)step4. install pgloader and load data to postgres
edit and save below to
sqlite.load
, only load data to postgres:after that, run command, and make sure there is no error
Tips: if you met error like
ERROR Database error 23505: duplicate key value violates unique constraint "system_setting_pkey"
, please review step3.step5. restart memos service, it works now.
Beta Was this translation helpful? Give feedback.
All reactions