SHELL脚本操作mysql数据库

    xiaoxiao2022-06-29  35

    脚本如下:

    #!/bin/bashUser="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)