Commit ea71983f by sn

initial mysql import

1 parent 8fe3b59d
#!/bin/bash
#
# @package freeSN
# @author dev@mensch.coop
#
. basepath.inc.sh
. "$__PATH_to_mcBash/include.inc.sh"
mc_h1 $0 $1 $2 $3
mc_parameter "1" "1" "$1" "mysql.sql.tar.gz import Datei"
mc_parameter "2" "1" "$2" "mysql Datenbank"
mc_parameter "3" "0" "$3" "mysql Benutzer"
mc_parameter "4" "0" "$4" "mysql Passwort"
if [ -z $3 ] ; then
user='root'
else
user=$3
fi
if [ -z $4 ] ; then
password=' -p '
else
password=" --password=$4 "
fi
tar -xzf $1 $__PATH_to_Temp/$1.sql
mc_bashsu "mysql -u $user $password $2 < $1.sql"
\ No newline at end of file
#!/bin/bash
. basepath.inc.sh
. "$__PATH_to_mcBash/include.inc.sh"
mc_h2 "network scan tools"
mc_bashsu "netstat -tulpen " $1
mc_bashsu "lsof -i" $1
......@@ -11,3 +11,4 @@ __DATE="$(date +%Y-%m-%d)"
. "$__PATH_to_mcBash/fnc_mc_echo.inc.sh"
. "$__PATH_to_mcBash/fnc_mc_file.inc.sh"
. "$__PATH_to_mcBash/fnc_mc_dialog.inc.sh"
. "$__PATH_to_mcBash/lib/fnc_mc_parameter.inc.sh"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!