Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,23 @@ mysql Ver 8.0.x for Linux on x86_64
ALTER USER '<USERNAME>'@'<HOST>' IDENTIFIED WITH caching_sha2_password BY '<PASSWORD>';
```

3. Ajoutez les clés uniques suivantes :
3. Exécutez les requêtes suivantes :

```shell
ALTER TABLE `centreon`.`traps` ADD UNIQUE (`traps_id`);
ALTER TABLE `centreon`.`topology` ADD UNIQUE (`topology_page`);
ALTER TABLE `centreon`.`cb_list_values` DROP CONSTRAINT IF EXISTS `fk_cb_list_values_1`;
```

4. Si vous utilisez [MBI](../reporting/introduction.md), dans la base de données du central :

* Donnez des droits trigger à l'utilisateur **centreon** :

```shell
GRANT TRIGGER ON centreon.* TO `centreon`@'%';
GRANT TRIGGER ON centreon_storage.* TO `centreon`@'%';
```

* Exécutez les requêtes suivantes :

```shell
Expand Down
7 changes: 4 additions & 3 deletions versioned_docs/version-24.10/upgrade/upgrade-mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,14 @@ mysql Ver 8.0.x for Linux on x86_64
ALTER USER '<USERNAME>'@'<HOST>' IDENTIFIED WITH caching_sha2_password BY '<PASSWORD>';
```

3. Add the following unique keys:
3. Execute the following queries:

```shell
ALTER TABLE `centreon`.`traps` ADD UNIQUE (`traps_id`);
ALTER TABLE `centreon`.`topology` ADD UNIQUE (`topology_page`);
ALTER TABLE `centreon`.`cb_list_values` DROP CONSTRAINT IF EXISTS `fk_cb_list_values_1`;
```

4. If you are using [MBI](../reporting/introduction.md), in the central database:

* Grant trigger rights to the **centreon** user:
Expand All @@ -99,7 +100,7 @@ mysql Ver 8.0.x for Linux on x86_64
GRANT TRIGGER ON centreon.* TO `centreon`@'%';
GRANT TRIGGER ON centreon_storage.* TO `centreon`@'%';
```

* Execute the following queries:

```shell
Expand Down