Closed (fixed)
Project:
Drupal core
Version:
7.0-alpha6
Component:
database system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2010 at 02:56 UTC
Updated:
25 Aug 2014 at 15:20 UTC
Jump to comment: Most recent
Comments
Comment #1
ryank76 commentedUsing php 5.2.13 and mysql 14.14 distrib 5.0.83.
Comment #2
ryank76 commentedOK so finding this thread http://ubuntuforums.org/showthread.php?t=597129
I put '127.0.0.1' instead of 'localhost' in the Database host field under Advanced Options. That worked.
Comment #3
David_Rothstein commentedHm, on most setups "localhost" should work - do you know if there is anything special about your server setup that makes it so it doesn't?
In the current user interface, we put 'localhost' as the default value and "If your database is located on a different server, change this" as the help text, which is not very helpful for the situation you encountered. Maybe if it's a common situation that 'localhost' does not work, we need to change that text somehow.
Comment #4
ryank76 commentedNothing special, it's LAMP from the Ubuntu repositories for version 9.10. The only tweak I've done (that I remember :s) is the one to enable clean URLs.
I'm a n00b really (as you can probably tell) so I wouldn't know how to fiddle with it if I tried, which I generally don't unless instructed.
Comment #5
pjcdawkins commentedI vaguely recall encountering something similar before, but it wasn't a Drupal-specific problem. The best answers might be here:
http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html
Comment #6
pasqualle