On Wed, 29 Nov 2006 10:43:01 +0100, Toni Mueller wrote:

> when trying to get different chrooted processes to talk to each other,
> I regularly avoid
> 
>> In 3.8 I used
>> rm -Rf /var/run/mysql
>> rm -Rf /var/www/var/run/mysql/*
>> ln -s /var/www/var/run/mysql /var/run/mysql
> 
> unix domain sockets and went for IP sockets instead.

Do you have a full description sharing the HowTo ?

The problem here is sorted. I was blinded by the jump in version number
of MySQL and the otherwise great http://www.openbsdsupport.org/mysql.htm

Here the story goes similar to what I had to do earlier: 
Stop MySQL 
rmdir /var/run/mysql 
mkdir /var/www/var/run/mysql 
chown _mysql:_mysql /var/www/var/run/mysql 
ln -s /var/www/var/run/mysql /var/run/mysql 
Start MySQL

With the following in /etc/rc.local:

# Start MySQL server
if [ -x /usr/local/bin/mysqld_safe ] ; then
        rm -Rf /var/run/mysql
        rm -Rf /var/www/var/run/mysql/*
        ln -s /var/www/var/run/mysql /var/run/mysql
        sleep 1
        su -c _mysql root -c '/usr/local/bin/mysqld_safe &' > /dev/null & echo 
-n ' mysql'
fi

to get it started at boot.
I wonder if there is a simpler way ? In any case, may I humbly suggest to
document something to this behalf in the install message or point to a 
/usr/local/share/doc/ or /usr/local/share/example ?

Uwe

Reply via email to