在 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 回答
- 0 關注
- 1312 瀏覽
添加回答
舉報
0/150
提交
取消