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 06-04-2003, 10:52 AM   #1
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Rep: Reputation: 30
broke mysql


MySQL will only start by manually going to the mysql dir and typing bin/mysqld_safe --user=root &

i copied the mysqld.server to rc.d and edited rc.local to reference it, but it just loads the thing, then says mysqld ended...

anyone any ideas what i have done wrong..
 
Old 06-04-2003, 11:39 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
What distro are you using?
 
Old 06-04-2003, 01:48 PM   #3
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
slackware 9.0
 
Old 06-04-2003, 04:43 PM   #4
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
still cant solve it...
 
Old 06-04-2003, 04:45 PM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Did you install another version of mysql or build one from source?
 
Old 06-04-2003, 09:03 PM   #6
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
I built my from source and can give you my rc.mysql file if you want. Let me know.
 
Old 06-05-2003, 03:38 AM   #7
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
i downloaded the binary, and ran script mysql_db_install as per here
http://www.linuxquestions.org/questi...threadid=62849

it works, but i have to manually start it each time
 
Old 06-05-2003, 04:13 AM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
What error message do you get when you start the server as a non-root user? Exactly what command do you use to try to start the server? Do you error logs show anything? What user owns the mysql var directory?

cheers

Jamie...
 
Old 06-05-2003, 08:43 AM   #9
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
if i start it with anything other than bin/mysql_safe --user=root

it says starting mysqld daemon with databases from /usr/local/mysql/data

030406 13:37:15 mysql ended

all directorys belong to root, apart from the data directory which belongs to mysql....

there is no mysql var directory...
 
Old 06-05-2003, 09:31 AM   #10
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Quote:
Originally posted by joel112
there is no mysql var directory...
Typically if you install mysql to the default /usr/local/mysql (the default from source anyway) your databases are stored in /usr/local/mysql/var this is also where your error log would be, which would probably tell you the problem. Search for a file called hostname.err - so if your server is called "linuxdb" then you would search for linuxdb.err. You can accomplish this by using
Code:
find / -type f -name hostname.err
Once you find the file have a look at what its telling you.

cheers

Jamie...
 
Old 06-05-2003, 12:48 PM   #11
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
a dirty fix...but, in slack, is there an rc.local? if so, throw the startup command in there and it should start when u boot up. you could try that until you get the other rc file to work correctly i guess.
 
Old 06-05-2003, 02:54 PM   #12
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
tried that, dident work... wont wrk till i am logged in as root it seems
 
Old 06-05-2003, 04:25 PM   #13
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Did you create a user/group 'mysql'?
Who owns the mysql/ directories?
 
  


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 03:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 08:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 02:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-08-2008 12:48 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM


All times are GMT -5. The time now is 06:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration