Skip to main content

dump table contents into .log file

Comments

6 comments

  • andrew.n
    You need to use the root login details to dump the database or simply just skip user and password like: mysqldump --tab=/tmp -u database_name table_name output.log
    0
  • jeffschips
    Thanks @andrew.n This is the error I'm seeing using the suggested method: mysqldump --tab=/tmp -u database_name table_name output.log mysqldump: Got error: 1045: Access denied for user 'database_name'@'localhost' (using password: YES) when trying to connect Error 1045 I believe means I must provide a root password.
    0
  • andrew.n
    Right, sorry. Could you give this a try? mysqldump database_name table_name > dump.sql
    0
  • jeffschips
    thanks @andrew.n that works perfectly! Now I need to extract only the part of the output that states: 'invalid login from xxx.xxx.xxx.xxx' where the x's are ip addresses. All of this is to find those offending ip addresses attempting to brute force phplist since phplist has yet to come up to speed with two factor. But thanks for the equation I know that parsing the output is not part of database issues so I can probably get that elsewhere. You have a great day and stay safe!
    0
  • cPRex Jurassic Moderator
    Nice collaboration here :D <3
    0
  • andrew.n
    My pleasure.
    0

Please sign in to leave a comment.