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:
  #1  
Old April 21st, 2000, 05:59 PM
vcosby vcosby is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 1 vcosby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i have tried the suggested solutions at mysql.com, but am still looking for answer.

problem:
as root, i can connect to all databases via sockets and tcpip, but as other users or anonymous, i can only connect to databases vi TCP/IP. this includes the test database.

e.g., when i attempt to connect to the test database:

% mysql test

i receive the error:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

however, i can connect via TCP/IP using:
% mysql -h '127.0.0.1' test

and this is the weird part:
as root i can connect via sockets and TCP/IP, no problem.

any ideas would be greatly appreciated.

my environment:
Caldera eDesktop Linux 2.4 (2.2.14)
mysql 3.22.32, installed via rpm
skip_networking is OFF

cheers,
victor


Reply With Quote
  #2  
Old May 5th, 2000, 05:48 AM
Rafal Chmielewski Rafal Chmielewski is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 1 Rafal Chmielewski 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 vcosby:
i have tried the suggested solutions at mysql.com, but am still looking for answer.

problem:
as root, i can connect to all databases via sockets and tcpip, but as other users or anonymous, i can only connect to databases vi TCP/IP. this includes the test database.

e.g., when i attempt to connect to the test database:

% mysql test

i receive the error:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

however, i can connect via TCP/IP using:
% mysql -h '127.0.0.1' test

and this is the weird part:
as root i can connect via sockets and TCP/IP, no problem.

any ideas would be greatly appreciated.

my environment:
Caldera eDesktop Linux 2.4 (2.2.14)
mysql 3.22.32, installed via rpm
skip_networking is OFF

cheers,
victor

[/quote]
Hi,
the solution is very simple if you know how to set the sticy bit on mysql socks directory.
Just issue "chmod 1777 dir_where_mysql_sock_file_is" and you go.
At least it worked for me. Next you should (or not) set the privs for mysql.sock file 777.
Bye,
Rafal


Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > please help: can only connect via mysql.sock as root


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 5 hosted by Hostway