LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2006, 12:50 PM   #1
kthnx
LQ Newbie
 
Registered: Aug 2006
Location: San Francisco
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
mySQL Problem...


I tried installing the mySQL Binary on Slackware 10.2 (w/ fluxbox if that matters).. I just downloaded it, tar -xzf'ed it, then ./configure;make;make installed it... I thought that would be all I needed, but whenever I try to start up the daemon, I get this error:
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Help plox? I don't know where the mysql.sock file is normally installed, then I can just start mysql up with a -S /normal/path/to/mysql.sock...

I can't find it =|
 
Old 11-11-2006, 01:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i just searched LQ for that exact error message, and got 70 exact identical questions... you might like to try that next time. the answer to all those threads... start the mysql service. all you'd doing is starting the client, not the daemon.
 
Old 11-11-2006, 01:05 PM   #3
kthnx
LQ Newbie
 
Registered: Aug 2006
Location: San Francisco
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Wait, I got it, and now i'm running the mysqld, but whenever I do I get this problem:

Code:
bash-3.00$ ./rc.mysqld start
bash-3.00$ Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
061110 11:07:22  mysqld ended

Last edited by kthnx; 11-11-2006 at 01:14 PM.
 
Old 11-11-2006, 01:13 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Does the file have executable permission? If not do chmod +x /etc/rc.d/rc.mysqld and try again.
 
Old 11-11-2006, 01:15 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
The directory is odd (but then, I haven't tried 11 yet). And is the
script actually set to executable? :}

[edit]Heh, too slow[/edit]

Cheers,
Tink
 
Old 11-11-2006, 01:19 PM   #6
kthnx
LQ Newbie
 
Registered: Aug 2006
Location: San Francisco
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Yes it is. New issue. Sorry bout the confusion, Thank you all for your help.

It's 10.2 by the way. I have 11 on DVD and this damn lappy doesn't have a DVD drive
 
Old 11-11-2006, 01:25 PM   #7
kthnx
LQ Newbie
 
Registered: Aug 2006
Location: San Francisco
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Wait, I don't think I even have a mysql.pid... what's going on... =|
 
Old 11-11-2006, 02:12 PM   #8
kthnx
LQ Newbie
 
Registered: Aug 2006
Location: San Francisco
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Bump! HELP ME! =|

Please.
 
Old 11-11-2006, 02:15 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
No bumping 'til 24 hours are up. Read the rules


And no, if you didn't start the mysqld you wouldn't have a pid. And you
haven't answered btmillers question.


Cheers,
Tink
 
Old 11-11-2006, 02:28 PM   #10
kthnx
LQ Newbie
 
Registered: Aug 2006
Location: San Francisco
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by btmiller
Does the file have executable permission? If not do chmod +x /etc/rc.d/rc.mysqld and try again.
Yes. The file has executable permission.

This is the error now:

Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
061110 11:18:32 mysqld ended

I cd'ed to /var/run/mysql/ and the directory was empty...


Sorry about that, I didn't mean to annoy anyone by prematurely bumping, I just need to set up mySQL in a hurry, knaamean?
 
Old 11-12-2006, 06:18 AM   #11
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
I think you forget to create the initial database. Have a look in /etc/rc.mysqld, the command is mentioned there (something like mysql_installdb or so).
 
Old 11-12-2006, 05:47 PM   #12
kthnx
LQ Newbie
 
Registered: Aug 2006
Location: San Francisco
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
I did, I ran the commands in the rc.mysqld file a while back. Created a password for the mysql user and everything.. I've done everything it says to do in the files, but I still get that error.


mysql@rawrcore:~$ Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/run/mysql/mysql.pid
061111 15:40:32 mysqld ended
 
Old 11-23-2006, 08:43 AM   #13
kthnx
LQ Newbie
 
Registered: Aug 2006
Location: San Francisco
Distribution: Slackware
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
061121 19:22:56 [ERROR] /usr/local/libexec/mysqld: Can't find file: './mysql/hel p_relation.frm' (errno: 13)
^^ That's the error I get when I run mysql_install_db. Where can I get that file?
 
Old 11-23-2006, 11:24 AM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
So you installed MySQL from source and not the slackware package?


Cheers,
Tink
 
Old 11-24-2006, 02:22 AM   #15
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
Originally Posted by kthnx
^^ That's the error I get when I run mysql_install_db. Where can I get that file?
Is that the exact error message? It seems that there is a space in the filename, which probably shouldn't be there.

Just to clarify the PID issue: the Process ID (PID) of many services/daemons are stored in files in /var/run when the service is started. This makes it very easy to:
1. stop the service (just executes a "kill" or "killall" on the stored PID)
2. check if the service is still running (by checking if the PID file exists or not).

So, when you start mysqld, it'll create the PID file in /var/run. In your case, mysqld then stopped immediately and erased the PID file (because the Process ID stored inside it is no longer valid).

Anyways, it seems that mysqld is starting allright, so no execution permission issue. It just immediately stops, probably caused by an error or something.
Maybe you can check out the MySql log files (if you don't know where they're stored, search in /var/log or on the MySql website). It should give you some indication why mysqld fails to start.
 
  


Reply



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
Bugzilla - MySQL - perl - DBD::mysql install problem amchargue Linux - Software 3 09-10-2008 12:01 AM
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
php-mysql dependancy problem after nitemare mysql upgrade. RHEL4 andrewc Red Hat 1 01-03-2006 04:16 PM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:28 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
Open Source Consulting | Domain Registration