@@ -108,7 +108,7 @@ delete_db(){
108108 print_log " db_deletion: prepare" " Performing database deletion"
109109
110110 # Needed to separate the GRANT statement from the rest because it was providing a syntax error
111- exec_cmd " mysql --skip-ssl - u $DB_SETUP_USER -p$DB_SETUP_PASS -h$SIMPLERISK_DB_HOSTNAME -P$SIMPLERISK_DB_PORT <<EOSQL
111+ exec_cmd " mysql -u $DB_SETUP_USER -p$DB_SETUP_PASS -h$SIMPLERISK_DB_HOSTNAME -P$SIMPLERISK_DB_PORT <<EOSQL
112112 SET sql_mode = 'ANSI_QUOTES';
113113 DROP DATABASE \" ${SIMPLERISK_DB_DATABASE} \" ;
114114 USE mysql;
@@ -138,15 +138,15 @@ db_setup(){
138138
139139 print_log " initial_setup:info" " Applying changes to MySQL database... (MySQL error will be printed to console as guidance)"
140140 # Using sql_mode = ANSI_QUOTES to avoid using backticks
141- exec_cmd " mysql --skip-ssl - u $DB_SETUP_USER -p$DB_SETUP_PASS -h$SIMPLERISK_DB_HOSTNAME -P$SIMPLERISK_DB_PORT <<EOSQL
141+ exec_cmd " mysql -u $DB_SETUP_USER -p$DB_SETUP_PASS -h$SIMPLERISK_DB_HOSTNAME -P$SIMPLERISK_DB_PORT <<EOSQL
142142 SET sql_mode = 'ANSI_QUOTES';
143143 CREATE DATABASE \" ${SIMPLERISK_DB_DATABASE} \" ;
144144 USE \" ${SIMPLERISK_DB_DATABASE} \" ;
145145 \. ${SCHEMA_FILE}
146146 CREATE USER \" ${SIMPLERISK_DB_USERNAME} \" @\" %\" IDENTIFIED BY \" ${SIMPLERISK_DB_PASSWORD} \" ;
147147EOSQL" " Was not able to apply settings on database. Check error above. Exiting."
148148 # Needed to separate the GRANT statement from the rest because it was providing a syntax error
149- exec_cmd " mysql --skip-ssl - u $DB_SETUP_USER -p$DB_SETUP_PASS -h$SIMPLERISK_DB_HOSTNAME -P$SIMPLERISK_DB_PORT <<EOSQL
149+ exec_cmd " mysql -u $DB_SETUP_USER -p$DB_SETUP_PASS -h$SIMPLERISK_DB_HOSTNAME -P$SIMPLERISK_DB_PORT <<EOSQL
150150 SET sql_mode = 'ANSI_QUOTES';
151151 GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER ON \" ${SIMPLERISK_DB_DATABASE} \" .* TO \" ${SIMPLERISK_DB_USERNAME} \" @\" %\" ;
152152EOSQL" " Was not able to apply settings on database. Check error above. Exiting."
0 commit comments