473,473 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL Socket Error

Hello all

I am a newbie to Linux, Apache and mySQL etc. I am running a standard RH9
build with yum updates. All appears to be working ok except one aspect.
Simple database (indexed 2 table)activity works but on a more sophisticated
existing database accessed through a perl script I get this error (taken
from logs): -

[Tue Apr 27 20:22:52 2004] [error] [client 192.168.0.12] [Tue Apr 27
20:22:52 2004] lbf.cgi: DBI
connect('username_disney:localhost','username_lett uce',...) failed: Can't
connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
(13) at /home/username/public_html/dating/cgi-bin/scripts/new_database.pl
line 6, referer: http://www.awebsite.loc/

I have checked that the daemon is up and all standard checks recommended
from the mySQL site show the socket is connecting ok and for TCP/IP on port
3306 etc....

Any ideas please? Thanks in advance

Alan

Jul 20 '05 #1
6 2154
By the way, my mysql.sock file is 0 bytes! Is this correct???

"Alan Powell" <al*********@assured-design.com> wrote in message
news:cC***************@fe07.usenetserver.com...
Hello all

I am a newbie to Linux, Apache and mySQL etc. I am running a standard RH9
build with yum updates. All appears to be working ok except one aspect.
Simple database (indexed 2 table)activity works but on a more sophisticated existing database accessed through a perl script I get this error (taken
from logs): -

[Tue Apr 27 20:22:52 2004] [error] [client 192.168.0.12] [Tue Apr 27
20:22:52 2004] lbf.cgi: DBI
connect('username_disney:localhost','username_lett uce',...) failed: Can't
connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
(13) at /home/username/public_html/dating/cgi-bin/scripts/new_database.pl
line 6, referer: http://www.awebsite.loc/

I have checked that the daemon is up and all standard checks recommended
from the mySQL site show the socket is connecting ok and for TCP/IP on port 3306 etc....

Any ideas please? Thanks in advance

Alan


Jul 20 '05 #2
By the way, my mysql.sock file is 0 bytes! Is this correct???

"Alan Powell" <al*********@assured-design.com> wrote in message
news:cC***************@fe07.usenetserver.com...
Hello all

I am a newbie to Linux, Apache and mySQL etc. I am running a standard RH9
build with yum updates. All appears to be working ok except one aspect.
Simple database (indexed 2 table)activity works but on a more sophisticated existing database accessed through a perl script I get this error (taken
from logs): -

[Tue Apr 27 20:22:52 2004] [error] [client 192.168.0.12] [Tue Apr 27
20:22:52 2004] lbf.cgi: DBI
connect('username_disney:localhost','username_lett uce',...) failed: Can't
connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
(13) at /home/username/public_html/dating/cgi-bin/scripts/new_database.pl
line 6, referer: http://www.awebsite.loc/

I have checked that the daemon is up and all standard checks recommended
from the mySQL site show the socket is connecting ok and for TCP/IP on port 3306 etc....

Any ideas please? Thanks in advance

Alan


Jul 20 '05 #3
Alan Powell wrote:
By the way, my mysql.sock file is 0 bytes! Is this correct???


Yes. Sometimes the only information file needs to provide is whether it
exists or not. This is one of those cases.
Jul 20 '05 #4
Alan Powell wrote:
By the way, my mysql.sock file is 0 bytes! Is this correct???


Yes. Sometimes the only information file needs to provide is whether it
exists or not. This is one of those cases.
Jul 20 '05 #5
Thanks aggro

I have now gotten my server running ok on sockets. I am using webmin to
administer and after some experiments found that I need to set a password
for each user for "localhost" as well as "all".

Problem solved.

"Aggro" <sp**********@yahoo.com> wrote in message
news:Ni***************@read3.inet.fi...
Alan Powell wrote:
By the way, my mysql.sock file is 0 bytes! Is this correct???


Yes. Sometimes the only information file needs to provide is whether it
exists or not. This is one of those cases.


Jul 20 '05 #6
Thanks aggro

I have now gotten my server running ok on sockets. I am using webmin to
administer and after some experiments found that I need to set a password
for each user for "localhost" as well as "all".

Problem solved.

"Aggro" <sp**********@yahoo.com> wrote in message
news:Ni***************@read3.inet.fi...
Alan Powell wrote:
By the way, my mysql.sock file is 0 bytes! Is this correct???


Yes. Sometimes the only information file needs to provide is whether it
exists or not. This is one of those cases.


Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert A. van Ginkel | last post by:
Hello Fellow Developer, I use the System.Net.Sockets to send/receive data (no tcpclient/tcplistener), I made a receivethread in my wrapper, the receivethread loops/sleeps while waiting for data...
2
by: Droopy | last post by:
Hi, I try to implement a reusable socket class to send and receive data. It seems to work but I have 2 problems : 1) I rely on Socket.Available to detect that the connection is closed (no...
2
by: Rene Sørensen | last post by:
We are 4 students working on a assignment, that our teacher gave use, normally we do this is C++, but the 4 of us, use C# more often that C++ so… We made a small games called reversi, now our job...
7
by: | last post by:
Hi all, I have a simple .aspx page running on net 2.0 that is trying to do a http post to a remote server. Here is the code Private Function ProcessRequests(ByVal strbody As String) As String...
1
by: bobano | last post by:
Hi everyone, I am writing a POP3 Client program in Perl. You connect to a POP3 Server and have a running conversation with the mail server using commands from the RFC 1939 Post Office Protocol....
2
by: John Nagle | last post by:
Here's a strange little bug. "socket.getaddrinfo" blows up if given a bad domain name containing ".." in Unicode. The same string in ASCII produces the correct "gaierror" exception. Actually,...
10
by: John Nagle | last post by:
Here are three network-related exceptions. These were caught by "except" with no exception type, because none of the more specific exceptions matched. This is what a traceback produced: 1....
14
by: ahlongxp | last post by:
Hi, everyone, I'm implementing a simple client/server protocol. Now I've got a situation: client will send server command,header paires and optionally body. server checks headers and decides...
10
by: Hendrik van Rooyen | last post by:
While doing a netstring implementation I noticed that if you build a record up using socket's recv(1), then when you close the remote end down, the recv(1) hangs, despite having a short time out...
2
by: manasap | last post by:
Hi all! I've written a server and a client application using asynchronous sockets.The client sends data packets for every 7 seconds.The server receives the packets. This process proceeds...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.