LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2004, 10:46 AM   #1
BeetleBailey
LQ Newbie
 
Registered: Jun 2004
Posts: 10

Rep: Reputation: 0
Exclamation problem with mysql startup script on server


I'm configuring a server to run mysql & php.
They both worked fine together last I looked. But that was only after I manually started the mysql server. I followed the instructions from mysql.org and copied they're mysql.server startup script into the appropriate directory (/etc/init.d/mysql) and linked to it from /etc/rc3.d/S99mysql and /etc/rc0.d/K01mysql as per the instructions.

Well every time I try to manually run the script (@> /etc/init.d/mysql start) to get the server to start it says that mysqld_safe is not an executable file or doesn't exist. I've checked & double checked & it does exist & is an executable script to start the mysqld server daemon.

The call inside the script looks like this:
...
$bindir/mysqld_safe --datadir=$datadir \
--pid-file=$pid_file >/dev/null 2>&1 &
...
It looks as if it's calling the script sending stdout to the pit and sending stderr to the screen, then the ' &' is supposed to make the process run in the background.

When I ran the code with the verbose option it spit this out:
...
+ /usr/local/mysql-x.x.xx/bin/mysqld_safe --datadir=/usr/local/mysql-x.x.xx/data --pid-file=/usr/local/mysql-x.x.xx/data/lmc1.pid
+ 1> /dev/null 2>& 1
...

It looks as if it's treating the commands separately, but I'm not sure if the second part is what is supposed to happen. And where the heck did the ' &' at the end go (to run the cmd in the background)???

I'm fairly new to Linux, so any help would be greatly appreciated.
 
Old 07-22-2004, 10:57 AM   #2
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
what's $bindir? /usr/local/mysql-x.x.xx/bin?
Does /usr/local/mysql-x.x.xx/bin/mysql_safe exist? You double checked right?
I bet /usr/local/mysql-x.x.xx/bin/mysql_safe doesn't exist.
What version of mysql are you running?
 
Old 07-22-2004, 04:37 PM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
What distribution are you using?
Did you install MySQL from a .deb or an rpm file?
Or did you compile from source ( .tar.gz, ./configure, make, make install)?
What does "whereis mysqld_save" say?
 
  


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
MySQL server dies immediately upon startup... CrazyPilot Linux - Software 2 03-22-2005 07:14 PM
Startup script problem tanveer Linux - Newbie 2 12-13-2004 09:45 PM
startup script problem dani81 *BSD 1 08-05-2004 06:39 AM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM
Apache server and MySQL server won't run at startup! dday007 Linux - General 2 02-07-2003 02:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:55 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