kubectl run mysql-client --image=mysql:5.7 -it --rm --restart=Never -- /bin/bash
mysql -h mysql-service -uroot -proot_password -e 'SHOW databases;'
OR
mysql -h mysql-service -uroot -proot_password
[ | |
"Abia", | |
"Adamawa", | |
"Akwa Ibom", | |
"Anambra", | |
"Bauchi", | |
"Bayelsa", | |
"Benue", | |
"Borno", | |
"Cross River", |
#! /bin/bash | |
apt-get update | |
apt-get install -y nginx | |
service nginx start | |
sed -i -- 's/nginx/Google Cloud Platform - '"$HOSTNAME"'/' /var/www/html/index.nginx-debian.html |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user