I've search the forums for a solution to the problem I'm seeing but so far I haven't been able to find a solution. I'm getting the old familiar "SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)." error I've seen other folks experience. I also had this issue before when installing 7.18 for the 1st time and I was able to resolve it by changing the hostname of the Db but this time it's different.

I decided to do a fresh install of 7.22 in hope that it would go smoothly and I got the above error. The problem is that when I scroll down to the Advance Options, the only thing that shows up with this install under advanced option is:

Database File *
_____________________ (box to insert the filename)
The absolute path to the file where Drupal data will be stored. This must be writable by the web server and should exist outside of the web root.

I don't get the option to put in the hostname of the Db server like I did before.

Has anyone encountered this problem before?

The Architect

Comments

vm’s picture

is the site being installed locally or on a host?

can you connect to the DB with the command line or in any other way?

hershel’s picture

Can you ask your host? Perhaps you need to set the default socket in php.ini

rafael1diaz’s picture

I was able to resolve this issue. I tried using IE 10.0 browser and like magic, the Db hostname entry showed up in my Drupal installation. I was able to enter my Db host name and everything installed correctly. It appears that using firefox ver 20.0 or even and earlier version of Firefox (so far I went back to ver 16.0) only shows a portion of the entries.

I just need to do some further testing to see which version of Firefox will display properly now with my admin page login. I'm on a Windows 8 platform as I just bought a new laptop however before, I was using Windows XP and Firefox before that laptop crashed on me.

Thanks for everyone's suggestions!

Now I just need to figure out why my admin pages don't show in Firefox but works ok in IE 10.0 :-)