--- scripts/mysql_install_db.sh.orig Tue Feb 17 13:18:22 1998 +++ scripts/mysql_install_db.sh Thu Mar 5 11:16:28 1998 @@ -3,24 +3,12 @@ # For a more info consult the file COPYRIGHT distributed with this file # This scripts creates the privilige tables db, host, user in mysql -# It should be run from the top level installation directory # # All arguments to this script is passed to safe_mysqld if test ! -x @bindir@/mysqladmin then echo "Can't execute @bindir@/mysqladmin" - if test "@localstatedir@" = "./data" - then - echo "You should be in the distribution directory when executing this script" - else - echo "You should do a 'make install' before executing this script" - fi - exit 1 -fi -if test ! -d "./data" -then - echo "You should be in the distribution directory when executing this script" exit 1 fi @@ -78,10 +66,7 @@ # copy the definition files # -if test "@localstatedir@" != "./data" -then - cp -p ./data/mysql/*.frm @localstatedir@/mysql -fi +cp @pkgdatadir@/mysql/*.frm @localstatedir@/mysql @bindir@/mysql mysql <