From 83ac44455776382e09a1b6bd277dd42c6c7d7a3b Mon Sep 17 00:00:00 2001 From: tonnesen Date: Tue, 2 Jul 2002 20:47:41 +0000 Subject: [PATCH] Removed. I believe this is no longer necessary. --- databaseinstall.sh | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 databaseinstall.sh diff --git a/databaseinstall.sh b/databaseinstall.sh deleted file mode 100755 index d6761b9c9e..0000000000 --- a/databaseinstall.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -if [ $# = 4 ]; then - echo Setting up database - mysqladmin -uroot -p$1 create $2 - echo creating tables - mysql -uroot -p$1 $2 < koha.mysql - echo creating mysql permissions - mysql -uroot -p$1 mysql -e "insert into user (Host,User,Password) values ('localhost','$3',password('$4'))"; - mysql -uroot -p$1 mysql -e "insert into db (Host,Db,User,Select_priv,Insert_priv,Update_priv,Delete_priv) values ('%','$2','$3','Y','Y','Y','Y')"; - mysqladmin -uroot -p$1 reload - echo - echo If no errors were reported, the database will be set up - echo You can check by typing mysql -u$3 -p$4 $2 - echo then show tables; - echo - echo You will need to Edit C4/Database.pm to reflect the username,database and password you have chosen - -else - echo This scripts needs four inputs, - echo The root password for mysql, the database for use with koha, the username for use with koha and the password - echo For example databaseinstall.sh fish koha kohauser tuna -fi -- 2.39.5