diff options
author | onefang | 2019-06-29 21:11:22 +1000 |
---|---|---|
committer | onefang | 2019-06-29 21:11:22 +1000 |
commit | 0fd8d363d6a434200b8d4ad0dc53799642bfa583 (patch) | |
tree | 408ffde9d455f9a63e2ec3d79613177f4b073efc | |
parent | IG godliness is different. (diff) | |
download | opensim-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-x | InstallItAll.sh | 4 |
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 | ||
48 | echo "Setting up OpenSim users. This next prompt asks for your MySQL root users password." | 48 | echo "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. |
50 | mysql -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. | ||
52 | sudo mysql -u root -p -h localhost << zzzzEOFzzz | ||
51 | create database if not exists $MYSQL_DB; | 53 | create database if not exists $MYSQL_DB; |
52 | create user '$MYSQL_USER' identified by '$MYSQL_PASSWORD'; | 54 | create user '$MYSQL_USER' identified by '$MYSQL_PASSWORD'; |
53 | create user '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD'; | 55 | create user '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD'; |