Skip to main content
Question

Centreon 22.4 update error

  • August 28, 2023
  • 3 replies
  • 104 views

Forum|alt.badge.img+1

 

Trying to update centreon 20 to 22.4 and on step 4 i see this:
 

Cannot execute query: ALTER TABLE `contact` ADD COLUMN `show_deprecated_pages` enum('0','1') DEFAULT '0' AFTER `default_page`;

in mysql -  ALTER TABLE `contact` ADD COLUMN `show_deprecated_pages` enum('0','1') DEFAULT '0' AFTER `default_page`;
ERROR 1046 (3D000): No database selected

3 replies

lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • August 29, 2023

Hi @philzy , please select ‘centreon’ database before to run SQL request:

use centreon;

 


Forum|alt.badge.img+1
  • Author
  • Steward *
  • August 29, 2023

Thank you!
i found needed sql file at this path /usr/share/centreon/www/install/sql/centreon
file Update-DB-20.10.0-beta.1.sql and i inserted “use centreon;”
But i don’t understand why it’s not working out of the box?
Pretty sure, that i’am not alone with such issue during upgrade.
Did the guys do tests before publishing updates?
In any case, thank you!


lpinsivy
Centreonian
Forum|alt.badge.img+21
  • Centreonian
  • August 29, 2023

Hi @philzy , sorry for the inconvenience.

We try to perform update from old Centreon versions but it can depend of which DBMS you are using and about your database values.