For this activity we will be installing nop commerce
overview of architecture
Create two
Azure ubuntu linux vms of size standard_b1s
AWS ubuntu linux instances of size t2.micro or t3.micro
Consider one vm to be database server and install mysql
Steps: Refer Here sudo apt update
sudo apt install mysql-server
sudo mysql
In the mysql shell try to execute following commands CREATE USER 'nop'@'localhost' IDENTIFIED BY 'nop12345';
GRANT ALL PRIVILEGES ON *.* TO 'nop'@'localhost';
FLUSH PRIVILEGES;
exit
To verify the nop execute mysql -u nop -p enter password and you should be allowed in sql shell
note: we need to fix the issue with external connectivity
Enabling mysql connections from anywhere Refer Here
Step 1:
The first thing we must do is configure MySQL for remote connections. To do this, log into your MySQL database server and open the configuration file with the command:
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
In that file, look for the line:
bind-address = 127.0.0.1
Change that line to:
bind-address = 0.0.0.0
Save and close the file. Restart the MySQL service with:
sudo systemctl restart mysql
Step 2: launch mysql shell sudo mysql
CREATE USER 'nop'@'%' IDENTIFIED BY 'nop12345';
GRANT ALL PRIVILEGES ON *.* to 'nop'@'%';
FLUSH PRIVILEGES;
exit
Lets configure ecommerce application in webpage http://<ip>:5000
Enter database details and credentials nop/nop12345