[MYSQL] logs exit error for mysqldump

Discussion in 'Server Operation' started by mopsos, Aug 21, 2007.

  1. mopsos

    mopsos New Member

    Hi,
    I used mysqldump in a script.
    But I want log the error of my mysqldump.
    For exemple: when I launch my script :dump.sh
    I have the error on my console :
    Code:
    mysqldump: Got error: 1045: Access denied for user '-padmin'@'localhost' (using password: NO) when trying to connect
    But I want save this error in a file (dump.log for exemple).
    How Can I do it?

    thanks
     
    Last edited: Aug 21, 2007
  2. mopsos

    mopsos New Member

    I founnd.
    I used the sterr.
    sh dump.sh 2>error.log
    But if you how another solution, you can give it.
    Thanks.
     

Share This Page