The new year is here and I have moved my (so far quite silent) blog to use WordPress and MySQL 5.5 GA.
Since I am using Ubuntu I downloaded a compressed tar archive. I installed it in a custom directory and for starting I wrote a little upstart script.
$ cat /etc/init/mysql-5.5.conf
start on startup
stop on shutdown
env basedir=/opt/mysql/mysql-5.5
env defaults=/etc/mysql-5.5/my.cnf
script
cd $basedir
$basedir/bin/mysqld_safe --defaults-file=$defaults
end script
In wp-config.php
I have set:
define('DB_HOST', 'localhost:/var/run/mysqld-5.5/mysqld.sock');
This lets me use a non default location for the socket too.
PlanetMySQL Voting: Vote UP / Vote DOWN