Postinsts barfing when mysqld not running
bddebian at comcast.net
Fri Aug 17 21:50:27 BST 2007
There are several bug reports on LP about postinsts failing with the
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
For simba, I did something like this in the simba.postinst:
# Check if mysqlserver is running
if [ -e "/var/run/mysqld/mysqld.sock" ]; then
echo "W: Database server does not appear to be running!"
echo "W: Please try dpkg-reconfigure simba to configure the package."
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?
Barry deFreese (aka bddebian)
And no, I haven't uploaded simba with that in it. :-)
More information about the Ubuntu-motu