1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/databases/mysql60-server/files/patch-ab

53 lines
1.6 KiB
Plaintext
Raw Normal View History

--- 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 <<END_OF_DATA
# Create tables from the .frm files
@@ -122,11 +107,7 @@
echo
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
echo
- echo "You can test the MySQL demon with the benchmarks in the 'bench'"
- echo "directory:"
- echo "cd bench ; run-all-tests"
- echo
- echo "You can also try the mysql command line tool with:"
+ echo "You can test the MySQL daemon with the mysql command line tool:"
echo "@bindir@/mysql test"
echo
echo "Plese report any problems with the @scriptdir@/mysqlbug script!"