mysql 导出某一张数据表的数据

mysql -u web -p -P 端口 -D 数据库名 -Bse "select * from testwhere audit_status=4" >test.txt
提示输入密码,输入即可

mysqldump -u web -p'password' -P12046 dbname table_name > table_name.sql

posted on 2020-12-03 19:36  woshare  阅读(2418)  评论(0编辑  收藏  举报