Skip to content

bash

mysql_backup.sh

#!/bin/bash prefixe=backup suffixe=$(date +%Y%m%d) filename=$prefixe$suffixe.sql host=host database=database user=user characterSet=UTF8 mysqldump –skip-comments \ –complete-insert \ –default-character-set=$characterSet \ –no-create-info \ –skip-add-locks \ –skip-opt \ –host $host \… Read More »mysql_backup.sh

scp resume

# Add this alias into ~/.bashrc alias scpresume=‘rsync –partial –progress –rsh=ssh’ # begin a scp copy: scp foo user@remotehost:/tmp/ # if a problem occur during… Read More »scp resume

ver la version mysql

#terminal C:\>mysql -uroot -p mysql> SELECT version(); # cliente mysql SELECT version();