summaryrefslogtreecommitdiff
path: root/localserver
diff options
context:
space:
mode:
Diffstat (limited to 'localserver')
-rwxr-xr-xlocalserver/initdb.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/localserver/initdb.sh b/localserver/initdb.sh
index df8d81d..40358e1 100755
--- a/localserver/initdb.sh
+++ b/localserver/initdb.sh
@@ -5,6 +5,11 @@ cd ../../server-data/sql-files
echo Creating db and user...
echo Enter mysql root password:
mysql --force -u root -p <./init.sql
+result=$?
+if [ "$result" != 0 ]; then
+ echo Password failed. Trying with sudo...
+ sudo mysql --force -u root <./init.sql
+fi
export CMD="mysql -u evol -pevol evol"