4571 Posts in 1383 Topics by 1376 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1263 Views |
-
"The database details don't appear to be correct..."

19 June 2010 at 5:49pm Last edited: 19 June 2010 6:09pm
"I couldn't find a database server on 'localhost': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
This is as far as I've gotten with trying out SilverStripe via EasyPHP in Windows. I've created a database in phpMyAdmin, and the user/pass are correct, but silverstripe doesn't seem to like it...
-
Re: "The database details don't appear to be correct..."

19 June 2010 at 6:52pm Last edited: 19 June 2010 7:04pm
Nevermind. Problem solved. I changed the "database server" field from "localhost" to "127.0.0.1", and voilà, it passed the test.
I can't imagine why that would make any difference though...
-
Re: "The database details don't appear to be correct..."

29 June 2010 at 4:24am
The answer to that problem might lie in your HOSTS file. Sometimes a computer will have two address entries that refer to the local computer. I haven't looked into it enough to find out exactly why, though I'd venture to guess that it either has something to do with IPv6 capability, or having two network cards (such as a laptop with a wired and wireless connection). This dual entry might be what's causing the issue, particularly if localhost isn't mapped to 127.0.0.1 (in which case, it's possible it's mapped to 127.0.1.1).
There's also a chance there's no host listing at all. If that's the case, then you can add a listing for localhost and then references to localhost should work as expected.
| 1263 Views | ||
|
Page:
1
|
Go to Top |


