LinuxQuestions.org
Help answer threads with 0 replies.
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 10-07-2004, 11:46 PM   #1
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Rep: Reputation: 15
mysql help


I am trying to start the mysql server in slackware 10. When I try to start it, I get fatal error: see the man on how to start mysqld as root!! I am trying to start it as root, and I cannot find the namual...lol...any help would be appreciated.
 
Old 10-08-2004, 04:02 AM   #2
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Strange, but you have to look for the docs on the mysql-site under development zone:
http://dev.mysql.com/doc/mysql/en/index.html

This the adress, I am sure it's in there and easy to find. I did it anyway but it is to long ago to remember .

greetingz,
elluva
 
Old 10-08-2004, 06:09 AM   #3
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
ok, having a big problem, when trying to start mysql, I get this...

Code:
root@rogue-confederation:/# cd /usr ; /usr/bin/mysqld_safe &
[1] 6924
root@my-computer:/usr# Starting mysqld daemon with databases from /var/lib/mysql
041008 07:07:51  mysqld ended


[1]+  Done                    /usr/bin/mysqld_safe
Why does it end after it starts up? mysql is set to startup when I boot my computer, I get the same message then.

If I type mysqladmin version, I get this error:

Code:
root@rogue-confederation:/usr# mysqladmin version
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
so I checked /var/run/mysql, and the folder is empty, what am I supposed to do about that?
 
Old 10-08-2004, 08:11 AM   #4
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 477

Rep: Reputation: 50
If you read the contents of /etc/rc.d/rc.mysqld (or something like that...I am at work right now) you will see that before you start the daemon, some database files must be created. They list the commands that have to be executed to do it.
 
Old 10-08-2004, 09:56 AM   #5
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
yes, I ran mysql_install_db before I got those error messages.
 
Old 10-08-2004, 06:32 PM   #6
Cyric
Member
 
Registered: Sep 2004
Location: NC, USA
Distribution: Slackware 10
Posts: 109

Original Poster
Rep: Reputation: 15
ok, got it started, it seems. Need to do further checkign to make sure everything is running correctly. In case anyone else runs into this same problem, here is what I did.

chown -R mysql /var/lib/mysql/*
chgrp daemon /var/lib/mysql/*

then I started it with this:

mysqld_safe &
 
  


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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 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 error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

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

All times are GMT -5. The time now is 06:18 AM.

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