Error Unknown table 'CHECK_CONSTRAINTS' in information_schema
during install/update
#2321
-
Shlink version4.4.0 PHP version8.3 How do you serve ShlinkSelf-hosted Apache Database engineMariaDB Database version5.5.68 Current behaviori run the installtion script and it keep saying [ERROR] Error updating database.. Run with -vvv to see specific error info. [root@ecs-TZWsG shlink]# vendor/bin/shlink-installer update Do you want to import configuration from previous installation? (You will still be asked for any new config option that did not exist in previous shlink versions) (yes/no) [yes]: Previous shlink installation path from which to import config:
Custom configuration properly generated! Updating database... [ERROR] Error updating database.. Run with -vvv to see specific error info. Generating proxies... Success! and by the way, i have been successfully generate an API key yet, my first installtion failed with the database and geoIP key , after I re-input the geoIP key , what is left is the database, keep saying error , i spent a day to fix this , not working still Expected behaviorrun the installion script supposed to run successfully Minimum steps to reproduce |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 10 replies
-
Please, provide the output of the command when run with |
Beta Was this translation helpful? Give feedback.
-
output is the same as running |
Beta Was this translation helpful? Give feedback.
-
like this |
Beta Was this translation helpful? Give feedback.
-
I'm going to need the full output, not just the first question |
Beta Was this translation helpful? Give feedback.
-
you mean the full output when I finish the all questions of the installtion script? |
Beta Was this translation helpful? Give feedback.
-
Yes. The installer runs a couple subprocesses at the end (like the one which is failing), and will print extra info when run in verbose mode. |
Beta Was this translation helpful? Give feedback.
-
thanks for your time, this is the full output you asked for |
Beta Was this translation helpful? Give feedback.
-
Are you trying to create a new Shlink installation, or updating an existing one? |
Beta Was this translation helpful? Give feedback.
-
The root of the issue is this error, when running database migrations: I'd suggest making sure you use a more recent version. The last one is 11.7, just as a reference. |
Beta Was this translation helpful? Give feedback.
-
i ran installtion for several times before, and ran update several times before, because it kept failed |
Beta Was this translation helpful? Give feedback.
The root of the issue is this error, when running database migrations:
Unknown table 'CHECK_CONSTRAINTS' in information_schema
, which is likely caused because you are using a veeeery old MariaDB version, and I don't think the database abstraction library supports it.I'd suggest making sure you use a more recent version. The last one is 11.7, just as a reference.