Project

General

Profile

Tâche #10440

Scénario #10308: Qualification eSBL 2.4.1

Qualification GLPI - $dbhost

Added by Philippe Carre over 8 years ago. Updated over 8 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/01/2014
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Remaining (hours):
0.0

Description

ERROR 1045 (28000): Access denied for user 'admin_glpi'@'127.0.0.1' (using password: YES)
(16:00:24) philippe.carre: Donc faut bien remplacer 127.0.0.1 par localhost ?
(16:00:45) vincent.chavanon: on en avait parlé avec Thierry, mais le soucis nsswitch avait tout emporté : il me semble bein qu'on avait conclu à une intégration de ca ds le paquet, si possible.


Related issues

Related to creole - Evolution #7183: adresse_ip_mysql devrait renvoyer "localhost" en mode non conteneur Fermé 01/24/2014

Associated revisions

Revision 3e25f091 (diff)
Added by Philippe Carre over 8 years ago

Utilisation de adresse_ip_mysql , plutot que adresse_ip_web (ref #10440)

Revision 90242b23 (diff)
Added by Philippe Carre over 8 years ago

Utilisation dans le dico de adresse_ip_mysql (ref #10440 #10164)

History

#1 Updated by Philippe Carre over 8 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Philippe Carre over 8 years ago

  • % Done changed from 0 to 10
  • Estimated time set to 2.00 h
  • Remaining (hours) set to 2.0

#3 Updated by Philippe Carre over 8 years ago

A voir , mais le pb se trouve aussi (surtout ?) dans le script postservice maj_param_ocs.sh
(donc quand OCS est activé)

/usr/bin/mysql -u admin_glpi -p$PWD -D glpi -h$container_ip_mysql -e "UPDATE glpi_ocsservers SET ocs_db_passwd = '"$PWDOCS"' WHERE glpi_ocsservers.name = 'localhost'"
/usr/bin/mysql -u admin_glpi -p$PWD -D glpi -h$container_ip_mysql -e "UPDATE glpi_ocsservers SET ocs_db_user = '"$USEROCS"' WHERE glpi_ocsservers.name = 'localhost'"

container_ip_mysql = 127.0.0.1

#4 Updated by Joël Cuissinat over 8 years ago

Philippe Carre a écrit :

A voir , mais le pb se trouve aussi (surtout ?) dans le script postservice maj_param_ocs.sh
(donc quand OCS est activé)

/usr/bin/mysql -u admin_glpi -p$PWD -D glpi -h$container_ip_mysql -e "UPDATE glpi_ocsservers SET ocs_db_passwd = '"$PWDOCS"' WHERE glpi_ocsservers.name = 'localhost'"
/usr/bin/mysql -u admin_glpi -p$PWD -D glpi -h$container_ip_mysql -e "UPDATE glpi_ocsservers SET ocs_db_user = '"$USEROCS"' WHERE glpi_ocsservers.name = 'localhost'"

container_ip_mysql = 127.0.0.1

Salut,

En fait, sur 2.4, il faut utiliser adresse_ip_web qui renvoie bien localhost et non container_ip_web qui renvoie 127.0.0.1 en mode non conteneur :)
Evidemment, cette subtilité n'a pas été documenté...

Amicalement
Joël

#5 Updated by Philippe Carre over 8 years ago

  • Status changed from En cours to Résolu

#6 Updated by Philippe Carre over 8 years ago

  • % Done changed from 10 to 100
  • Remaining (hours) changed from 2.0 to 0.0

#7 Updated by Emmanuel GARETTE over 8 years ago

  • Status changed from Résolu to En cours
  • % Done changed from 100 to 80

Attention joel t'as induit en erreur, il faut utiliser adresse_ip_mysql et non adresse_ip_web !

#8 Updated by Philippe Carre over 8 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 80 to 100

#9 Updated by Thierry Jambou over 8 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF