欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

mysql增添删除用户

程序员文章站 2022-05-14 13:02:06
...

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...."