[MYSQL] logs exit error for mysqldump

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

  1. mopsos

    mopsos New Member

    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 :
    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?

    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.

Share This Page