Magento Forum

   
Server connection problem - socket ‘/var/lib/mysql/mysql.sock’ (2
 
rajbrades
Member
 
Total Posts:  53
Joined:  2007-09-04
 

Hi all,

I’m getting this problem on installation:

Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

I’ve searched the forum and found two previous posts on users having the same issue. Unfortunately I haven’t been able to find a solution.

I’ve changed the Host, DB name, UN and password to reflect my DB’s details,
+
Removed the app/etc/local.xml file
+
have no other apps that run on my MySQL server.

I’ve been trying forever to get this up and am dying to start changing the front end...any help is GREATLY appreciated.

Ryan

 
Magento Community Magento Community
Magento Community
Magento Community
 
winans_fred
Sr. Member
 
Total Posts:  83
Joined:  2007-09-06
 

Hi Rajbrades

Would you be able to show us PHP Info?  To do so, create a .php file and insert this code:

<?php phpinfo(); ?>

Then, publish and navigate to that page and copy & paste the information you receive here.  It seems like you may have a permissions issue.

 
Magento Community Magento Community
Magento Community
Magento Community
 
rajbrades
Member
 
Total Posts:  53
Joined:  2007-09-04
 

Certainly..

I’m running PHP version 5.2.3

System Linux nlw-fe02 2.6.17-11-server #2 SMP Fri May 18 23:40:13 UTC 2007 i686
Build Date Aug 31 2007 10:59:57
Configure Command ‘./configure’ ‘--enable-static’ ‘--enable-cgi’ ‘--enable-force-cgi-redirect’ ‘--with-config-file-path=/etc/php5cgi’ ‘--prefix=/usr/local/php5cgi’ ‘--with-gd’ ‘--with-mysql’ ‘--with-mcrypt’ ‘--with-mhash’ ‘--with-curl’ ‘--enable-ftp’ ‘--with-openssl’ ‘--with-dom’ ‘--enable-sockets’ ‘--with-zlib’ ‘--with-zlib-dir=/usr/include’ ‘--with-pear’ ‘--with-jpeg’ ‘--with-png’ ‘--with-freetype’ ‘--with-jpeg-dir’ ‘--with-png-dir’ ‘--with-pdo-mysql’ ‘--with-mysqli’
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5cgi
Loaded Configuration File (none)
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top