- If want to work from MYSQL docker container.
docker-compose exec <service_name> bash- Backup as dump file
mysqldump -h <hostname> -u <username> -password <database_name> --triggers --routines --events > remote_db.sql| odefun = @(t, u) 4*exp(t) - 0.5*u; | |
| [t, u] = ode45(odefun, [0, 4], 4); | |
| plot(t, u, 'g-', 'LineWidth', 2); | |
| hold on; | |
| t0 = 0; | |
| tend = 4; |
| #include <cstdlib> | |
| #include <ctime> | |
| #include <iostream> | |
| using namespace std; | |
| int check(char a[]); | |
| void fill(char a[]); | |
| int vuser(char a[]); | |
| int check1(char a[]); | |
| int check2(char a[]); |
| // std::advance : advances the iterator ‘it’ by n element positions. | |
| std::advance(itr, 6); // move iterator by 6 |
| echo ">> Update system..." | |
| sudo apt update | |
| echo ">> docker pre-setup" | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| echo ">> Add docker repo" | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" |
docker-compose exec <service_name> bashmysqldump -h <hostname> -u <username> -password <database_name> --triggers --routines --events > remote_db.sql