linux下批量执行mysql指令实例
2015-06-04 13:23
363 查看
方法一:-e
mysql -uroot -p123456 -e "use test;select now();"
方法二:< filepath
vi sh
use test;
select now();"
:wq
mysql -uroot -p123456 < ./sh
mysql -uroot -p123456 -e "use test;select now();"
方法二:< filepath
vi sh
use test;
select now();"
:wq
mysql -uroot -p123456 < ./sh
相关文章推荐
- linux 断电后出现问题
- Linux释放cached的方法
- Linux下加载iso光盘镜像的方法
- linux定时器
- linux grep命令
- Ubuntu如何从user用户切换到root用户
- centos rm回收站
- Windows Socket和Linux Socket编程的区别
- 实战-----使用crond 在linux中定时执行任务
- [DB2]linux下安装db2 v9.7
- Linux 内核内存泄露工具使用
- linux 软链接
- ODROID-X2 SD card install Arch linux
- linux: 获取系统资源(getconf(1), sysconf(3))
- 关于Linux系统性能调优需要了解的几点
- linux驱动之定时器的使用
- 嵌入式linux环境下的视频采集(V4L2)
- linux 压缩解压命令
- exec函数
- linux 终端快捷键