Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 06:55 am EST

Geeklog Forums

Updated php and mysql on server... trying to install and get error .


berto

Anonymous
Hi All!

I have been installing geeklog on a couple of Mac OS X 10.4 servers.. on one server when I try to install I get the following issue

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /Library/WebServer/geeklog/system/databases/mysql.class.php on line 120
Cannot connect to DB server


I just updated the php from the standard install to 5.20 . I also upgraded the mysql to the current 5.0.27.
I can use terminal and get into mysql.. I also use Navicat and have no problem... the php.info pulls up and displays all the updates.. I know that part is working fine.. so I don't understand ... can anyone help me with what I might try to resolve this ?

Thanks for your help in advance !

berto
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Did you (re)compile PHP after you installed MySQL? Apple's PHP expects the sockets in a different place than where the MySQL binaries from mysql.com put them.

bye, Dirk
 Quote

Status: offline

berto

Forum User
Junior
Registered: 01/25/07
Posts: 16
Hi Dirk!
The problem actually ended up being a problem with my mysql .....Thanks for all your great help and fast responses to this board !

berto
 Quote

Status: offline

berto

Forum User
Junior
Registered: 01/25/07
Posts: 16
I have had one person email me on having this same issue when trying to install geeklog . for me I followed http://www.macosxhints.com/article.php?story=20060111113313511 and it resolved my issues.. I thought I would post this just in case someone else may need it..
 Quote

All times are EST. The time is now 06:55 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content