View Single Post
  #2  
Old 12-09-2005, 07:07 AM
programmers programmers is offline
OSP Starters
 
Join Date: Dec 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
programmers is on a distinguished road
Smile Solution

It was much more complex than it should be. I had to change the mysql.server script a whole lot until it worked...
Below is whats working for


#!/bin/sh

PATH=/sbin:/usr/sbin:/bin:/usr/bin:$basedir/bin
export PATH

basedir=/usr/local/mysql5
datadir=/home/mysql5
bindir=/usr/local/mysql5/bin
pid_file=/home/mysql5/goofy.pid
server_pid_file=/home/mysql5/goofy.pid
user=mysql5

#
# Use LSB init script functions for printing messages, if possible
#
lsb_functions="/lib/lsb/init-functions"
if test -f $lsb_functions ; then
source $lsb_functions
else
log_success_msg()
{
echo " SUCCESS! $@"
}
log_failure_msg()
{
echo " ERROR! $@"
}
fi

wait_for_pid () {
i=0
while test $i -lt 35 ; do
sleep 1 -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - MySQL 5 and MySQL 4.1 on One Machine ??
View Single Post
  #2  
Old 12-09-2005, 07:07 AM
programmers programmers is offline
OSP Starters
 
Join Date: Dec 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
programmers is on a distinguished road
Smile Solution

It was much more complex than it should be. I had to change the mysql.server script a whole lot until it worked...
Below is whats working for


#!/bin/sh

PATH=/sbin:/usr/sbin:/bin:/usr/bin:$basedir/bin
export PATH

basedir=/usr/local/mysql5
datadir=/home/mysql5
bindir=/usr/local/mysql5/bin
pid_file=/home/mysql5/goofy.pid
server_pid_file=/home/mysql5/goofy.pid
user=mysql5

#
# Use LSB init script functions for printing messages, if possible
#
lsb_functions="/lib/lsb/init-functions"
if test -f $lsb_functions ; then
source $lsb_functions
else
log_success_msg()
{
echo " SUCCESS! $@"
}
log_failure_msg()
{
echo " ERROR! $@"
}
fi

wait_for_pid () {
i=0
while test $i -lt 35 ; do
sleep 1 -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote