Browse Source

Updated scripts for db and server setup

production
Steffan JJ 1 year ago
parent
commit
4916187ae9
2 changed files with 7 additions and 0 deletions
  1. 4
    0
      trias/Database/mysql_restore.sh
  2. 3
    0
      trias/Server/trias_dbserver_script.sh

+ 4
- 0
trias/Database/mysql_restore.sh View File

# Set the database credentials # Set the database credentials
sudo apt-get update
sudo apt-get -y install cifs-utils
sudo mount //10.10.5.26/trias /mysql_backup/ -o username='baptist',password='2021Bbh',domain='bbh'

DB_USER="root" DB_USER="root"
DB_PASS="root@123" DB_PASS="root@123"
DB_NAME="triq_demo" DB_NAME="triq_demo"

+ 3
- 0
trias/Server/trias_dbserver_script.sh View File



sleep 2 sleep 2


cd /
sudo mkdir mysql_backup

#STEPS FOR MYSQL_SECURE_INSTALLATION #STEPS FOR MYSQL_SECURE_INSTALLATION
#STEP-1 sudo mysql #STEP-1 sudo mysql
#STEP-2 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'SET_PASSWORD'; #STEP-2 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'SET_PASSWORD';

Loading…
Cancel
Save