We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Database error. php 5.3

Development and Programming

cyrax's avatar
cyrax
1 posts
13 years ago
cyrax's avatar cyrax

Hi. I have the following issue. I have a database that is located not on my local host. The project is deployed on local host. I try to connect to that db. When I use php 5.1 then it works fine. Using PHP 5.3 gives an error:

Impossible to connect to DB using suggested login/password. Filename: X:\home\site.lc\www\system\database\DB_driver.php Line Number: 124

Credentials to DB are filled correctly 100%. Please help me out with this issue. Thanks!

       
allgood2's avatar
allgood2
427 posts
13 years ago
allgood2's avatar allgood2

Did you check the file DB_driver.php to see what’s on Line 124? Also, what version of ExpressionEngine is this?

       
cyrax's avatar
cyrax
1 posts
13 years ago
cyrax's avatar cyrax

I work with CodeIgniter v. 2.1.3. line #124(DB_driver.php) : $this->display_error(‘db_unable_to_connect’); This line is the part of the method “initialize”.

       
allgood2's avatar
allgood2
427 posts
13 years ago
allgood2's avatar allgood2

Oh, sorry. I’m not that familiar with CodeIgniter, I thought it was an EE question. What I can say, is I run PHP 5.3 and can connect to remote database sources with my EE config.php file.

       
Environ-IT's avatar
Environ-IT
26 posts
13 years ago
Environ-IT's avatar Environ-IT

Cyrax,

You might try using the IP of the database server rather than the hostname in your Mysql connection string.

It’s a bit hard to diagnose it any further with the limited information you’ve provided, but you might be lucky.

Andrew

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.