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 2015-05-26 14:47:50

popcek
Member
Registered: 2015-05-26
Posts: 1

Mysql password with '%'

If u have a '%' in your mysql password, connection to database will not work. Why? Because of usage urldecode function in dbmysql.class.php. Due to php documentation: "urldecode Decodes any %## encoding in the given string. Plus symbols ('+') are decoded to a space character. " So database passwords with '%' or '+' will report error with "Access denied for user...."

Offline

#2 2015-05-26 17:13:07

sauvef74
Member
From: Canada, Québec, Montréal
Registered: 2014-11-27
Posts: 54

Re: Mysql password with '%'

did you try to convert your file to UTF8 dbmysql.class.php? to see how he will react? Do not forget that GLPI is encoded in UTF8.

Let me know if it works, if I had the same problem, that is what I will try.


Prod: GLPI 0.84.7 / CentOs 6.5 x64 / PHP 5.6.2 x64 / Apache 2.2.15 / MySQL 5.5.40-community x64
Dev #1: GLPI 0.84.7 / CentOs 6.5 x64 / PHP 5.6.2 x64 / Apache 2.2.15 / MySQL 5.5.40-community x64
Dev #2: GLPI 0.85.1 / CentOs 6.5 x64 / PHP 5.6.2 x64 / Apache 2.2.15 / MySQL 5.5.40-community x64

Offline

Board footer

Powered by FluxBB