使用shell命令操作数据库
时间:2021-07-01 10:21:17
帮助过:4人阅读
mysql -e "show databases;" -uroot -ppenghui110 >test.txt
[root@iZwz99qnmldt4n744noo9gZ ~]
# ls
databases_backup_20170411172702 lnmp1.3-full lnmp-install.
log test.
txt
[root@iZwz99qnmldt4n744noo9gZ ~]
# cat test.txt
Database
information_schema
blog
mysql
performance_schema
question
wordpress
yii2
[root@iZwz99qnmldt4n744noo9gZ ~]
# mysql -uroot -ppenghui110 -e "show databases;" >a.txt
[root@iZwz99qnmldt4n744noo9gZ ~]
# cat a.txt
Database
information_schema
blog
mysql
performance_schema
question
wordpress
yii2
参考文档:http://blog.csdn.net/feeltouch/article/details/46643065
使用shell命令操作数据库
标签:参考 mysql word for form back UI format nbsp