--- scripts/mysql_install_db.sh 2007-11-15 15:06:33.000000000 +0100 +++ scripts/mysql_install_db.sh.oden 2007-12-06 18:38:41.000000000 +0100 @@ -209,7 +209,9 @@ then basedir="@prefix@" bindir="@bindir@" - mysqld="@libexecdir@/mysqld" + # Use the mysqld-max binary by default if the user doesn't specify a binary + if test -x "@libexecdir@/mysqld"; then mysqld="@libexecdir@/mysqld"; fi + if test -x "@libexecdir@/mysqld-max"; then mysqld="@libexecdir@/mysqld-max"; fi pkgdatadir="@pkgdatadir@" else bindir="$basedir/bin" @@ -316,7 +334,7 @@ if test ! -d $dir then mkdir -p $dir - chmod 700 $dir + chmod 711 $dir fi if test -w / -a ! -z "$user" then