aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-06-29 21:11:22 +1000
committeronefang2019-06-29 21:11:22 +1000
commit0fd8d363d6a434200b8d4ad0dc53799642bfa583 (patch)
tree408ffde9d455f9a63e2ec3d79613177f4b073efc
parentIG godliness is different. (diff)
downloadopensim-SC-0fd8d363d6a434200b8d4ad0dc53799642bfa583.zip
opensim-SC-0fd8d363d6a434200b8d4ad0dc53799642bfa583.tar.gz
opensim-SC-0fd8d363d6a434200b8d4ad0dc53799642bfa583.tar.bz2
opensim-SC-0fd8d363d6a434200b8d4ad0dc53799642bfa583.tar.xz
Deal with "passwordless" Mariadb installs.
Thanks to Taylor for helping me figure this out.
-rwxr-xr-xInstallItAll.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/InstallItAll.sh b/InstallItAll.sh
index b7077b8..15f7c03 100755
--- a/InstallItAll.sh
+++ b/InstallItAll.sh
@@ -47,7 +47,9 @@ sudo /etc/init.d/mysql restart
47 47
48echo "Setting up OpenSim users. This next prompt asks for your MySQL root users password." 48echo "Setting up OpenSim users. This next prompt asks for your MySQL root users password."
49# "create user if not exists" doesn't exist until MySQL 5.7, so we have to put up with a warning, which we can ignore. 49# "create user if not exists" doesn't exist until MySQL 5.7, so we have to put up with a warning, which we can ignore.
50mysql -u root -p -h localhost << zzzzEOFzzz 50# Recent Debian based systems install with a passwordless root account, but it only works if run as the OS root user.
51# Otherwise you can't get in. Yep, the -p seems to still be needed.
52sudo mysql -u root -p -h localhost << zzzzEOFzzz
51create database if not exists $MYSQL_DB; 53create database if not exists $MYSQL_DB;
52create user '$MYSQL_USER' identified by '$MYSQL_PASSWORD'; 54create user '$MYSQL_USER' identified by '$MYSQL_PASSWORD';
53create user '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD'; 55create user '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD';