source: trunk/gsdl3/dist-resources/mysql-load-sample-colls.sh@ 7840

Last change on this file since 7840 was 7840, checked in by kjdon, 20 years ago

scripts to setup mysql and load in the sample dbs for the installer

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 503 bytes
Line 
1#!/bin/sh
2
3gsdl3home=$1
4
5if [ "$gsdl3home" == "" ]; then
6 echo "Usage: $0 <gsdl3home>"
7 exit 1
8fi
9
10cd $gsdl3home
11
12./gs3-mysql-server.sh start
13sleep 2
14
15pushd $gsdl3home/packages/mysql
16
17# set up any sample collections databases
18#gs3mgdemo
19echo "loading in the gs3mgdemo database"
20./bin/mysql --user=root --execute="create database localsite_gs3mgdemo;"
21./bin/mysql --user=root localsite_gs3mgdemo < $gsdl3home/web/sites/localsite/collect/gs3mgdemo/mysqldatadump.sql
22
23popd
24./gs3-mysql-server.sh stop
Note: See TracBrowser for help on using the repository browser.