$OpenBSD: patch-scripts_mysql_install_db_sh,v 1.14 2013/09/04 19:16:59 brad Exp $
--- scripts/mysql_install_db.sh.orig	Thu Jul 11 09:39:36 2013
+++ scripts/mysql_install_db.sh	Tue Sep  3 20:12:07 2013
@@ -27,7 +27,8 @@ srcdir=""
 args=""
 defaults=""
 mysqld_opt=""
-user=""
+user=_mysql
+group=_mysql
 
 force=0
 in_rpm=0
@@ -113,6 +114,8 @@ parse_arguments()
         # as 'user' (crucial e.g. if log-bin=/some_other_path/
         # where a chown of datadir won't help)
         user=`parse_arg "$arg"` ;;
+      --group=*)
+        group=`parse_arg "$arg"` ;;
       --skip-name-resolve) ip_only=1 ;;
       --verbose) verbose=1 ;; # Obsolete
       --rpm) in_rpm=1 ;;
@@ -365,7 +368,7 @@ do
   fi
   if test -w / -a ! -z "$user"
   then
-    chown $user $dir
+    chown -f $user:$group $dir
   fi
 done
 
@@ -441,10 +444,6 @@ fi
 # the screen.
 if test "$cross_bootstrap" -eq 0 && test -z "$srcdir"
 then
-  s_echo
-  s_echo "To start mysqld at boot time you have to copy"
-  s_echo "support-files/mysql.server to the right place for your system"
-
   echo
   echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
   echo "To do so, start the server, then issue the following commands:"
@@ -465,10 +464,7 @@ then
   then
     echo
     echo "You can start the MySQL daemon with:"
-    echo "cd $basedir ; $bindir/mysqld_safe &"
-    echo
-    echo "You can test the MySQL daemon with mysql-test-run.pl"
-    echo "cd $basedir/mysql-test ; perl mysql-test-run.pl"
+    echo "/etc/rc.d/mysqld start"
   fi
 
   echo
