如何用shell script來更改資料庫內容? - Linux

Table of Contents

>目的是使用shell script來遠端update另一台資料庫的內容

>index是 年 月 日這樣

>想要直接一行code解決,不用到額外的php等等東西

>麻煩版上各位先進幫小弟解惑一下,感謝!

稍為更改一下作法

我現在有一個asp檔,只要連結到那個網址就可以更改資料庫的內容

格式是

http://xx.xx.xx.xx/xxx/test.asp?year=2009&month=8&day=14&channel=5&cd=2

請問要如何使用shell script來點這個網址呢

目前試過用WGet --post-data,卻出現ERROR 500: Internal Server Error

苦惱中QQ


--

All Comments

David avatarDavid2010-02-06
mysqldump出來,傳過去再匯入,不知道行不行 XD
Olga avatarOlga2010-02-08
與其 mysqldump 出來不如用 mysql client 倒寫好的 sql 進
Harry avatarHarry2010-02-11
樓上的作法比較好 但是只有 api 的話試試 curl
Michael avatarMichael2010-02-13
問題已解決,感謝各位回答!