|
|
|
|
|
|
|
|
|
|
|
sudo apt update |
|
|
|
|
|
|
|
|
|
|
|
# Install prerequisites for dev environment |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install mysql |
|
|
|
|
|
sudo apt install mysql-server -y |
|
|
|
|
|
systemctl is-active mysql |
|
|
|
|
|
sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mysql#minA1';" |
|
|
|
|
|
sudo mysql_secure_installation |
|
|
|
|
|
sudo mysql -e "FLUSH PRIVILEGES;" -u root -pmysql#minA1 |
|
|
|
|
|
systemctl status mysql.service |
|
|
|
|
|
|
|
|
|
|
|
# Init DB schema and Load Data |
|
|
|
|
|
mysql -u root -pmysql#minA1 < cihsr-data/cihsr-dev-schema.sql |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sudo apt install python2 |
|
|
|
|
|
sudo apt install build-essential |
|
|
|
|
|
sudo apt install -y make |