Postinsts barfing when mysqld not running

Barry deFreese bddebian at comcast.net
Fri Aug 17 21:50:27 BST 2007


Hey folks,

There are several bug reports on LP about postinsts failing with the 
following message:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket 
'/var/run/

mysqld/mysqld.sock'



For simba, I did something like this in the simba.postinst:

# Check if mysqlserver is running
if [ -e "/var/run/mysqld/mysqld.sock" ]; then
...
else
    echo "W: Database server does not appear to be running!"
    echo "W: Please try dpkg-reconfigure simba to configure the package."
fi


Should I tell them to install a database server and make sure it's 
running, then reconfigure the package.  Or am I approaching this the 
wrong way entirely?

Thanks!

Barry deFreese (aka bddebian)

And no, I haven't uploaded simba with that in it. :-)



More information about the Ubuntu-motu mailing list