为了账号安全,请及时绑定邮箱和手机立即绑定

mysqldump密码问题

mysqldump密码问题

慕侠2389804 2018-08-18 16:53:44
在 web 服务器上使用 mysqldump 备份 MySQL 服务器的数据如果这样:mysqldump -hxxx.xxx.xx.xx -uusername -ppwd db table --where="order_id > 4300284 and order_id < 4300293" > /xxxx/file.sql明文输入密码,会提示:Warning: A partial dump from a server that has GTIDs will by default include the GTIDs of all transactions, even those that changed suppressed parts of the database. If you don't want to restore GTIDs, pass --set-gtid-purged=OFF. To make a complete dump, pass --all-databases --triggers --routines --events我想知道的是,在使用 mysqldump 命令的时候,不明文输入密码,即mysqldump -hxxx.xxx.xx.xx -uusername -p db table --where="order_id > 4300284 and order_id < 4300263" > /xxxx/file.sql类似直接在Linux中执行,然后回车输入密码,但是在PHP程序中,怎么实现类似的功能呢?也就是说 执行完上条命令,该输入密码了,PHP怎么把密码传给Linux谢谢诸位
查看完整描述

1 回答

?
慕田峪7331174

TA贡献1828条经验 获得超13个赞

order_id > 4300284 and order_id < 4300263

你的条件写错了吧
4300284
4300263


查看完整回答
反对 回复 2018-08-19
  • 1 回答
  • 0 关注
  • 1288 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信