Home > Database > Mysql Tutorial > mysql增添删除用户

mysql增添删除用户

WBOY
Release: 2016-06-07 16:14:56
Original
1091 people have browsed it

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...."
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template