Index: server/Slim/Utils/MySQLHelper.pm =================================================================== --- server/Slim/Utils/MySQLHelper.pm (revision 24386) +++ server/Slim/Utils/MySQLHelper.pm (working copy) @@ -248,6 +248,15 @@ my $confFile = $class->confFile; my $process = undef; + # Bug: 8461 + if ( defined($ENV{'TMPDIR'}) && ($ENV{'TMPDIR'} ne '') ) { + # make sure TMPDIR points to a dir we can use so MySQL will start + if ( (! -d $ENV{'TMPDIR'}) || (! -w $ENV{'TMPDIR'}) ) { + $log->error("TMPDIR environment variable points to a location that is not a usable location (\"$ENV{'TMPDIR'}\"), unsetting TMPDIR so MySQL can run"); + $ENV{'TMPDIR'} = undef; + } + } + # Bug: 3461 $mysqld = Slim::Utils::OSDetect::getOS->decodeExternalHelperPath($mysqld); $confFile = Slim::Utils::OSDetect::getOS->decodeExternalHelperPath($confFile);