|
|
|
|
|
|
|
|
cd .. |
|
|
cd .. |
|
|
|
|
|
|
|
|
# Install mysql |
|
|
# Install mysql |
|
|
|
|
|
# https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_lower_case_table_names |
|
|
|
|
|
sudo debconf-set-selections <<< "mysql-server mysql-server/lowercase-table-names select Enabled" |
|
|
#sudo apt install mysql-server -y |
|
|
#sudo apt install mysql-server -y |
|
|
systemctl is-active mysql |
|
|
systemctl is-active mysql |
|
|
#sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mysql#minA1';" |
|
|
#sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mysql#minA1';" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Init DB schema and Load Data |
|
|
# Init DB schema and Load Data |
|
|
#mysql -u root -pmysql#minA1 < cihsr-data/cihsr-dev-schema.sql |
|
|
#mysql -u root -pmysql#minA1 < cihsr-data/cihsr-dev-schema.sql |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############## |
|
|
|
|
|
###UNINSTALL MYSQL |
|
|
|
|
|
#sudo apt-get remove --purge mysql* |
|
|
|
|
|
#sudo apt-get autoremove |
|
|
|
|
|
#sudo apt-get autoclean |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
echo module.exports = { instanceName : "'$INSTANCENAME'", reposerver: "'$REPOSERVER'", gitUser: "'$GITUSER'", gitEmail:"'$GITEMAIL'" } > installchoices.js |
|
|
echo module.exports = { instanceName : "'$INSTANCENAME'", reposerver: "'$REPOSERVER'", gitUser: "'$GITUSER'", gitEmail:"'$GITEMAIL'" } > installchoices.js |