LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > SQL error

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2008, 06:01 AM
WebZ777 WebZ777 is offline
Member
 
Join Date: Dec 2008
Posts: 15
Default SQL error

Hi

I have installed litespeed and after I start it I got this error on my phpBB forum

SQL ERROR [ mysql4 ] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) [2002]

Any help?
Reply With Quote
  #2  
Old 12-20-2008, 09:06 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You need to build your own PHP binary, maybe the latest PHP5
Reply With Quote
  #3  
Old 12-20-2008, 11:44 PM
WebZ777 WebZ777 is offline
Member
 
Join Date: Dec 2008
Posts: 15
Quote:
Originally Posted by mistwang View Post
You need to build your own PHP binary, maybe the latest PHP5
Can you tell me how please ?
Reply With Quote
  #4  
Old 12-21-2008, 12:45 AM
WebZ777 WebZ777 is offline
Member
 
Join Date: Dec 2008
Posts: 15
Update, I have php5 but I have mysql 4 too, so. php5 can't connect to mysql 4 ?

Above error was on phpBB3, on phpBB2 I got this error:
phpBB : Critical Error
Could not connect to the database

I am sure there is a problem with connection to MySQL
With lighttpd and apache it works fine, only with litespeed I getting "Could not connect to the database" error

Last edited by WebZ777; 12-21-2008 at 12:50 AM..
Reply With Quote
  #5  
Old 12-21-2008, 11:42 AM
jayjaybaby jayjaybaby is offline
Member
 
Join Date: Aug 2008
Posts: 32
It's not a litespeed error, its most likely the way your compiling PHP.

Did you compile PHP with the --with-mysql & --with-mysqli flags?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:34 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.