用shell script做資料庫操作 - Linux
By Ethan
at 2013-06-17T18:11
at 2013-06-17T18:11
Table of Contents
最近在學寫shell script
想操作mysql
但有幾個點不知道怎麼寫
第一行寫這樣可以進去資料庫
/Applications/MAMP/Library/bin/mysql
但接下來的指令就無效了
請問要怎樣寫好一串指令在外面操作他呢?
作基本的刪除,加入...等等
其實是想讓它自動跟遠端的主要資料庫隨時維持同步
想法是定期固定從遠端拉過來,然後把現在的資料庫換成新的
有人能提點一下嗎感謝!
--
想操作mysql
但有幾個點不知道怎麼寫
第一行寫這樣可以進去資料庫
/Applications/MAMP/Library/bin/mysql
但接下來的指令就無效了
請問要怎樣寫好一串指令在外面操作他呢?
作基本的刪除,加入...等等
其實是想讓它自動跟遠端的主要資料庫隨時維持同步
想法是定期固定從遠端拉過來,然後把現在的資料庫換成新的
有人能提點一下嗎感謝!
--
Tags:
Linux
All Comments
By Eden
at 2013-06-20T08:31
at 2013-06-20T08:31
By Agnes
at 2013-06-23T14:49
at 2013-06-23T14:49
By Madame
at 2013-06-26T21:58
at 2013-06-26T21:58
By Susan
at 2013-06-29T23:05
at 2013-06-29T23:05
By Charlotte
at 2013-07-02T10:43
at 2013-07-02T10:43
By Agatha
at 2013-07-02T19:12
at 2013-07-02T19:12
By Zora
at 2013-07-05T17:51
at 2013-07-05T17:51
By Mary
at 2013-07-10T14:41
at 2013-07-10T14:41
By Steve
at 2013-07-11T21:51
at 2013-07-11T21:51
Related Posts
抓取檔案裡數行連續的文字區塊
By Olga
at 2013-06-17T15:28
at 2013-06-17T15:28
抓取檔案裡數行連續的文字區塊
By Tristan Cohan
at 2013-06-17T14:14
at 2013-06-17T14:14
HackingThursday 固定聚會 (2013-06-20)
By Madame
at 2013-06-17T12:28
at 2013-06-17T12:28
HackingThursday 固定聚會 (2013-06-20)
By Kelly
at 2013-06-17T12:02
at 2013-06-17T12:02
Centos BIND 異常
By Daph Bay
at 2013-06-16T21:58
at 2013-06-16T21:58