Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot install new chamilo 1.11.4 on server because of create db expression. #2172
Current behavior / Resultado actual / Résultat actuel
Cannot install new chamilo 1.11.4 on server because of create db expression. Only upgrade is possible. This behaviour was not present in older versions (188.8.131.52).
This is because the create expression is in the install procedure. If the installation sees that there is already a database, then instead of the create expression, the use expression should be used.
Expected behavior / Resultado esperado / Résultat attendu
Steps to reproduce / Pasos para reproducir / Étapes pour reproduire
Chamilo Version / Versión de Chamilo / Version de Chamilo
I think what @Morepizza1 means is that he has already a database but has no right to drop it and recreate it (which is a common scenario on shared hosting services).
@Morepizza1, the issue with not doing this is we might get stuck with remnants of a previous database (for example tables that are deleted by the update procedure and would otherwise remain if you install a new portal on an existing database). So we are not going to change that (because mostly this generates a whole array of new issues in terms of support, which we cannot handle as a free project).
Based on this experience, I will update the installation guide a bit to explain that and avoid confusion. Changing the software to show that in the interface is too much effort in comparison to the number of such cases that may appear.
The code related to this drop+recreate is located here: https://github.com/chamilo/chamilo-lms/blob/1.11.x/main/install/index.php#L760