首页
IT
登录
6mi
u
盘
搜
搜 索
IT
SHELL脚本操作mysql数据库
SHELL脚本操作mysql数据库
xiaoxiao
2022-06-29
35
脚本如下:
#!/bin/bash
User
=
"root"
Passwd
=
"password"
$
(
which mysql
)
-
u$
{
User
}
-
p$
{
Passwd
}
-
e
"
create database mytest;
use mytest;
create table student (
id int not null auto_increment,
name varchar (50),
primary key (id)
);
insert into student
values
(1,"xiaoming");
"
转载请注明原文地址: https://ju.6miu.com/read-1125290.html
专利
最新回复
(
0
)