in reply to mysql remote server query

The usual way of working with a database server (remotely or locally) is through the DBI and (in this case) DBD::mysql modules.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: mysql remote server query
by Anonymous Monk on Jan 31, 2010 at 15:08 UTC
    mysqldump already does this, no point in writing a script
      Indeed it does and you can even add a WHERE condition so you have some control over which rows get dumped, but it always dumps all fields in your table. Also you cannot join tables or databases in your query when using mysqldump.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James