shell脚本交互mariadb数据库

通过shell脚本可以对数据库进行授权,增删改查

#!/bin/sh
MySQL -uroot -p123456 < use test;
select * from testaa while a=10000; 
exit
EOF

 mariadb是可以下载后不用root密码进入的数据库,如果需要在shell脚本中进行对数据库的更改,可依照上面的脚本进行执行

你可能感兴趣的:(数据库,mariadb,linux)