Browse Source

Updated scripts for db and server setup

pull/14/head
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

@@ -1,4 +1,8 @@
# 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_PASS="root@123"
DB_NAME="triq_demo"

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

@@ -5,6 +5,9 @@ sudo systemctl start mysql.service

sleep 2

cd /
sudo mkdir mysql_backup

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

Loading…
Cancel
Save