If you have sql.gz archive
1 - create target database on server
2 - zcat mydb.sql.gz | mysql -u root -h localhost -p mydb
Find the data location
1 connect to mysql;
2 select @@datadir
Software Developer and Curious Person sharing personal discoveries and making a bookmarks for the future.
ssh -p 22 shmalex@ubutunserver
git clone https://github.com/shmalex/wifispymap.git
git status
# open home folder
$ cd
# craete file
$ echo '#!/bin/bash' > deployment.sh
# edit the file
$ nano deployment.bash
#!/bin/bash
cd /home/shmalex/wifispymap/
git pull
chmod +x deployment.sh
$ ls -ahl | grep 'deployment.sh'
-rwxrwxr-x 1 shmalex shmalex 50 Jun 15 14:22 deployment.sh
$ cd$ deployment.sh
$ cd /
$ /home/shmalex/deployment.sh
$ sudo crontab -e
*/5 * * * * /home/shmalex/deployment.sh
$ sudo crontab -l
$ grep CRON /var/log/syslog
$ grep CRON /var/log/syslog
import mysql.connector
import pandas as pd
import numpy as np
from scipy.stats import bernoulli, binom, poisson, norm, uniform, beta
import matplotlib.pyplot as plt
import numpy as np # we will use it for generation the arrays
from scipy.stats import bernoulli, binom, poisson, norm, uniform, beta
import matplotlib.pyplot as plt
def print_mvsk(*args):
t = args[0]
mean, var, skew, kurt, = float(t[0]),float(t[1]),float(t[2]),float(t[3])
sd = np.sqrt(var)
print(f'mean:{mean:.4f}\tvar:{var:.4f}\tskew:{skew:.4f}\nsd:{sd:.4f}\tkurt:{kurt:.4f}')