BambooInvoice Forums

mysql_driver.php - return a empty string instead of the database user password

 
Total Posts: 1

Hi Derek,

I install the latest version of bambooinvoice 0.8.9 and encounter some problems.

When I was doing the install on the base_url, I receive this database error message :

  Unable to connect to your database server using the provided settings.

I went to look at database.php and all the information was ok. I even test it by connecting with mysql client.


Then I look at my mysql.log and I notice this error :

  100223 21:51:49     12 Connect   Access denied for user ‘bambooinvoice’@‘localhost’ (using password: NO)

After some research I notice something that I am not sure I understand since I am not familiar with the framework. In the line 70 of this file : /bamboo_system_files/database/drivers/mysql/mysql_driver.php

  70 return @mysql_connect($this->hostname, $this->username, $this->password, TRUE);

$this->password seen to be returning a empty string. I actually fix it temporaly with a nasty hack : $this->password = “my_bd_password”; directly into the file and everything start to work properly.

Hope those informations can be useful. I am gonna look more into it and post back if I find anything else.

Have a good day and thanks for this great software.

Karl Tremblay

Total Posts: 14

That means the password in the config was incorrect (maybe a space at the end?)

-Chris Q.