LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2002, 04:46 PM   #1
ricardocastro
LQ Newbie
 
Registered: Feb 2002
Location: Ensenada Mexico
Distribution: WinNt and RedHat
Posts: 7

Rep: Reputation: 0
Question mysql.sock whereis?


Hi!
I've a little problem now with MySQL.
I don't have the RedHat 7.0; so, i did download mysql-max-3.23.49-pc-linux-gnu-i686-tar.gz, i've follow all
the steps that indicates the INSTALLATION-BINARY, but when i'm trying to do (from /usr/local/mysql) bin/mysqladmin
-u root -p, the next message follows
ERROR 2002: Can't connect to local MySQL server through
socket '/tmp/mysql.sock' (111)
So, i did
find / -name mysql.sock
And nothing!!. this file isn't anywhere!!!!
Wh at is happened???. When i'm follow the steps, no error message is present!!!.
What can i do??
Thank's
Ricardo
 
Old 02-27-2002, 02:46 AM   #2
LinuxGod
LQ Newbie
 
Registered: Aug 2001
Location: Cave Mountain
Distribution: Redhat Only
Posts: 29

Rep: Reputation: 15
Post

Most likely it is in /var/lib/mysql
so link it to the /tmp directory like this:

ln -s /var/lib/mysql/mysql.sock /tmp

then restart mysql.

hope that works.
 
Old 03-01-2002, 01:39 PM   #3
ricardocastro
LQ Newbie
 
Registered: Feb 2002
Location: Ensenada Mexico
Distribution: WinNt and RedHat
Posts: 7

Original Poster
Rep: Reputation: 0

I'm terrible sorry if i persisting requiring your help.
I've found these problems and i don't know how to resolve them:

1.- I've found the file .err in /usr/local/mysql/data and indicates these:
Fatal error: Can't change to run as user 'mysql'

But these user exists!!! I created in /home; and the directory /var/lib/mysql exists!!!.
As it's group also exists!!.

2.-The file mysql.sock can't find it anywhere, so i made this (in /var./lib/mysql)
touch mysql.sock
then
ln -s /var/lib/mysql /tmp/mysql.sock
(is it fine?)

3.- When i do
/usr/local/mysql/bin/./mysqld
Indicates:
Can't change to /usr/local/mysql/var
Aborting


What can i do?

Thank's

Last edited by ricardocastro; 03-01-2002 at 01:42 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
MySQL 3.23.58-14 installation prolem - mysql.sock not found lightcom Linux - Software 4 02-23-2005 12:46 AM
can't connect to mysql through socket '/tmp/mysql.sock' Boby Programming 2 05-23-2004 01:32 PM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration