Skip to content
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

Add MySQL to map installation #3996

Draft
wants to merge 3 commits into
base: staging
Choose a base branch
from

Conversation

smau-centreon
Copy link
Contributor

Description

Please include a short summary of the changes and what is the purpose of the PR. Any relevant information should be added to help reviewers.

Target version (i.e. version that this PR changes)

  • 22.10.x
  • 23.04.x
  • 23.10.x
  • 24.04.x
  • 24.10.x
  • 25.10.x
  • Cloud
  • Monitoring Connectors

Copy link
Contributor

github-actions bot commented Jan 10, 2025

PR Previews
🚀 Deployed preview to https://docs-preview-int.centreon.com/previews/pr-3996/staging/
at Fri, 17 Jan 2025 16:32:54 GMT

NOTE: Previews are deleted after 30 days of inactivity

<TabItem value="Debian 12" label="Debian 12">

```shell
to add
Copy link
Contributor

@Jordan9131 Jordan9131 Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wget -P /tmp/ https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb
apt install /tmp/mysql-apt-config_0.8.29-1_all.deb

Selectionner Ok pour valider l'installation de "MySQL Tools & Connectors"
apt update

Copy link
Contributor

@Jordan9131 Jordan9131 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check please ? And it's possible to review this documentation in staging ?

* Answer **yes** to all questions except "Disallow root login remotely?".
* It is mandatory to set a password for the **root** user of the database.
```shell
to add
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rien à faire, MySQL 8.0 est déjà disponible dans les dépôts officiels.

```shell
mysql_secure_installation
to add
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rien à faire, MySQL 8.0 est déjà disponible dans les dépôts officiels.


<Tabs groupId="sync">
<TabItem value="Alma / RHEL / Oracle Linux 8" label="Alma / RHEL / Oracle Linux 8">

```shell
dnf install centreon-map-engine
to add
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"la commande est OK"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jordan9131 Tu es sûr ? parce que juste avant on dit "Then install MySQL server:"

```

</TabItem>
<TabItem value="Alma / RHEL / Oracle Linux 9" label="Alma / RHEL / Oracle Linux 9">

```shell
dnf install centreon-map-engine
to add
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"la commande est OK"

```

</TabItem>
<TabItem value="Debian 11 & 12" label="Debian 11 & 12">

```shell
apt update && apt install centreon-map-engine
to add
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"la commande est OK"

> MySQL must listen to all interfaces instead of localhost/127.0.0.1, which is the default value. Edit the following file:
>
> ```shell
> to add
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/etc/mysql/mysql.conf.d/mysqld.cnf

> Set the **bind-address** parameter to **0.0.0.0** and restart MySQL.
>
> ```shell
> to add
Copy link
Contributor

@Jordan9131 Jordan9131 Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bind-address = 0.0.0.0
Then restart MYSQL

sudo service mysql restart

```shell
mysql_secure_installation
to add
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

systemctl restart mysql

<TabItem value="Debian 11" label="Debian 11">

```shell
to add
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wget -P /tmp/ https://dev.mysql.com/get/mysql-apt-config_0.8.29-1_all.deb
apt install /tmp/mysql-apt-config_0.8.29-1_all.deb

Selectionner Ok pour valider l'installation de "MySQL Tools & Connectors"

apt update

```shell
systemctl enable mariadb
systemctl restart mariadb
```
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jordan9131
à remplacer par

systemctl enable mysql
systemctl restart mysql

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants