-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite2mysql.sh script generates broken SQL queries #5273
Comments
Because in Seafile 11, useage of SQlite will be deprecated, I'm trying to move from SQlite to MySQL according to https://manual.seafile.com/deploy/migrate_from_sqlite_to_mysql/ Also for me generating was done without problem, applying seahub-db.sql fails me with several errors. I added the corresponding lines that were generated:
|
We will check the issue. |
Hello, after some debugging, I found that this error ( For example, the
When creating the So please check your SQL file first to ensure that the creation statement for the If indeed this is the issue, then we will work on updating the migration document from SQLite to MySQL, providing more points of attention to avoid such errors from happening again. |
Alright, after a bit of shuffling, the import now worked. So the order is now
and
Also I modified the following CREATE, since the type of the "permission" field wasn't given in the original statement: But that work shouldn't be necessary to be done by every user. Instead I expect that running "sqlite2mysql.sh" will spit out working SQL files. Please also see to mentioning in the migration document, the admin should create a separate user for accessing the three databases like so:
|
Thank you for your testing and feedback. We will update the documentation shortly. |
The script should have been fixed already. |
Hello!
I'm on a locally installed Seafile 8.0.8 server, and I'm trying to migrate the SQLite DB to MySQL so that I can start using the Docker version of seafile server (which seem to require MySQL).
However, the generated SQL files does not seem to work. Getting this on the
seahub-db.sql
:Generating the files seemed to work fine:
I'm on an updated Ubuntu 20.04.5 LTS.
The text was updated successfully, but these errors were encountered: