首頁 >資料庫 >mysql教程 >mysql增添删除用户

mysql增添删除用户

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-06-07 16:14:561095瀏覽

mysql添加删除用户 #!/bin/bash read -p "input your name: " NAME read -p "input your passwd:" PASSWD mysql -uvpn -pvpn123 EOF use vpn; insert into vpnuser (name,password) values('$NAME' ,'$PASSWD'); EOF echo "vpn add is ok...." #!/bin/bash re

mysql添加删除用户
#!/bin/bash
read -p "input your name: "  NAME
read -p "input your passwd:" PASSWD
mysql -uvpn -pvpn123 use vpn;
insert into vpnuser (name,password) values('$NAME' ,'$PASSWD');
EOF
echo "vpn add  is  ok...."

#!/bin/bash
read -p "input your name: "  NAME
mysql -uvpn -pvpn123 use vpn;
delete from vpnuser where name="$NAME";
EOF
echo "vpn delete  is  ok...."
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn