Replies: 2 comments
-
Hi,
Indeed, there is no recommended method. If you have a limited usage of 2FAuth, the best way to proceed is to use the import/export feature of 2FAuth. By limited usage I mean:
In this case, the process is:
As you can see, this is relevant for limited usage because some operations need to be redone manually. If you are not in a basic usage, I recommend an hybrid approach:
Note that this is only a suggestion, I have not tested it. If for any reason you need to rollback to your sqlite setup:
This assumes that you have never deleted the |
Beta Was this translation helpful? Give feedback.
-
Was playing around with mistral AI new Codestral LLM, the hybrid approach is ok. I have used Codestral to convert a sqlite dump into mysql instructions. It imports seamlessly into MySQL. The sqlite export has been made with sqlitedbbrowser:
Obviously, because of the db constraints, the imported data have to be consistent. In my first attempt, the sqlite dump contained some 2FA records bound to a missing user record, so the transaction failed (this was from a test db). But with a consistent dataset, no problem. Of course, don't do the AI stuff with your own 2FA data. This was just for testing purposes, using fake 2FAs. Let me know if you have successfully completed your migration, your feedback would be welcome. |
Beta Was this translation helpful? Give feedback.
-
I would like to migrate my 2fauth installation from SQLite to MySQL.
After searching for information, I couldn't find any references on how to do this.
I know that converting the SQLite file to a MySQL dump is an option, but I'm not sure if this method is suitable for migrating my installation. Is this the best approach, or is there another recommended way to proceed?
Thank you in advance, and I apologize if this question has been asked before.
Beta Was this translation helpful? Give feedback.
All reactions