MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old May 16th, 2000, 07:19 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Yes I've been to mysql.com but
i'm still getting the error Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock (2)
I checked the mysql.sock file and it is empty
- any one got any idea whats happening - i have installed this on my machine at home and it works perfectly.

Os Red Hat Linux 5.2

thanks in advance

Reply With Quote
  #2  
Old May 17th, 2000, 01:17 PM
gbubani gbubani is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 10 gbubani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by des:
Yes I've been to mysql.com but
i'm still getting the error Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock (2)
I checked the mysql.sock file and it is empty
- any one got any idea whats happening - i have installed this on my machine at home and it works perfectly.

Os Red Hat Linux 5.2

thanks in advance
[/quote]

Hi,

If you can find file mysql.sock, and can't connect to mysql, it means that your client can't find the sock. Try calling the client with the option --socket=socket_path/mysql.sock .

ex. mysql --socket=/usr/local/mysql/mysql.sock

If it works, check the file /etc/my.cnf and change the [client] section so that the socket file is pointed to the same address as the socket in [mysqld] section.

Please e-mail if I haven't been very clear.


Bye,

G.Bubani

Reply With Quote
  #3  
Old May 18th, 2000, 05:45 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi,


Hi G.Bubani

Thank you for you reply - I have tried what you have said but it still doesn't connect. The mysql.sock that is there is empty (zero k). I have reinstalled but still nothing - can I get a mysql.sock file or is one created for each individual machine?

thanks again for your help

Des

Ps I'm going to do another reinstall


Reply With Quote
  #4  
Old May 18th, 2000, 06:23 AM
gbubani gbubani is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 10 gbubani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by des:
Hi,


Hi G.Bubani

Thank you for you reply - I have tried what you have said but it still doesn't connect. The mysql.sock that is there is empty (zero k). I have reinstalled but still nothing - can I get a mysql.sock file or is one created for each individual machine?

thanks again for your help

Des

Ps I'm going to do another reinstall
[/quote]

Hi Des,

The file mysql.sock is a temporary file created as the deamon starts and is deleted as the daemon stops.

Can you tell me where your mysql.sock is, and what permissions (owner, group, rxw) does the directory has so that I can think about what is going on ?

Bye

G.Bubani


Reply With Quote
  #5  
Old May 18th, 2000, 09:46 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi G.Bubani
It looks for the file at
/var/lib/mysql/mysql.sock

but I have var/lib -but no mysql directory

permissions for both var and lib are
drwxr-xr-x

thanks
Des

Reply With Quote
  #6  
Old May 18th, 2000, 11:40 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Apologies G.Bubani


Please ignore last message I have a mysql directory in /var/lib/
With permissions of drwxr-xr-x

Thanks
Des

Reply With Quote
  #7  
Old May 26th, 2000, 05:04 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi G.Bubani

Its a server problem I spoke with our server people and they have it working now.
Thank you for all of your help
Des

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Can't connect


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway