用She'll操作数据库
- 用Shell制作insert into语句
#!/bin/bash
mysql -uroot -p123456 <<EOF> /dev/null
use sunboDataBase;
insert into Table1(Guid,Name) values('ssssbddds','bbbbbb');
EOF
chmod u+x 记得添加权限
#!/bin/bash
mysql -uroot -p123456 <<EOF> /dev/null
use sunboDataBase;
insert into Table1(Guid,Name) values('ssssbddds','bbbbbb');
EOF
chmod u+x 记得添加权限