You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2021-04-12 18:28:22

Calej
Member
Registered: 2021-04-12
Posts: 3

Connection problems between GLPI and OCS Inventory

Good morning everyone!

I have GLPI 9.5.4 installed on-premises and I have installed the OCS Inventory plugins, which is also installed on-premises.

Well, the problem comes when trying to connect to the OCS database. I enter the OCS IP address and the DB and user data, and I get a connection failure in the Test section.

When I use debug mode and try to connect to the db in OCS Inventory the following Warning is displayed

PHP Warning (2): mysqli::real_connect(): (HY000/2002): Connection refused in /var/www/glpi/inc/dbmysql.class.php at line 185
PHP Warning (2): mysqli::real_connect(): (HY000/2002): Connection refused in /var/www/glpi/inc/dbmysql.class.php at line 185

Offline

#2 2021-05-28 13:34:00

nimek20
Member
Registered: 2018-07-03
Posts: 14

Re: Connection problems between GLPI and OCS Inventory

I have a similar problem.

GLPI: 9.5.5 (Windows)
OCS 2.9 (Ubuntu)

Warning: mysqli :: real_connect (): The server requested authentication method unknown to the client [caching_sha2_password] in C: \ xampp \ htdocs \ glpi \ inc \ dbmysql.class.php on line 185

Warning: mysqli :: real_connect (): (HY000 / 2054): The server requested authentication method unknown to the client in C: \ xampp \ htdocs \ glpi \ inc \ dbmysql.class.php on line 185

Warning: mysqli :: real_connect (): The server requested authentication method unknown to the client [caching_sha2_password] in C: \ xampp \ htdocs \ glpi \ inc \ dbmysql.class.php on line 185

Warning: mysqli :: real_connect (): (HY000 / 2054): The server requested authentication method unknown to the client in C: \ xampp \ htdocs \ glpi \ inc \ dbmysql.class.php on line 185

Please help.

Offline

#3 2021-06-11 11:29:44

nimek20
Member
Registered: 2018-07-03
Posts: 14

Re: Connection problems between GLPI and OCS Inventory

Problem with OCS Inventory NG (GPLv2+ 1.7.3)

I have disabled the plug and there are no problems.

Offline

#4 2021-06-12 23:58:38

oj69
Member
From: Somewhere in the cloud
Registered: 2021-02-01
Posts: 157

Re: Connection problems between GLPI and OCS Inventory

why not using fusioninventory with GLPI ?

Offline

#5 2021-06-13 19:06:56

nimek20
Member
Registered: 2018-07-03
Posts: 14

Re: Connection problems between GLPI and OCS Inventory

I use the advantages of Fusion and OCS. There are differences in the plugins and the data that can be downloaded from devices. OCS finds more devices than Fusion.

Offline

#6 2021-06-17 09:24:36

nimek20
Member
Registered: 2018-07-03
Posts: 14

Re: Connection problems between GLPI and OCS Inventory

Problem solved.

https://stackoverflow.com/questions/523 … unknown-to

Edit my.cnf file on OCS Inventory server and put this setting in mysqld section:

[mysqld]
default_authentication_plugin= mysql_native_password

Then run following in mysql command:

FLUSH PRIVILEGES;
sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start

and done!

Offline

Board footer

Powered by FluxBB