title: Mysqldump isn't working: "command not found"
body: <p>I have to export a database from the command line. I tried using this command:</p>
  
  <pre><code>mysqldump -u root -p db_name &gt; backup.sql
  </code></pre>
  
  <p>But it returns this error:</p>
  
  <blockquote>
    <p>-bash: mysqldump: command not found</p>
  </blockquote>
  
  <p>After this, I also tried with</p>
  
  <pre><code>sudo mysqldump
  </code></pre>
  
  <p>but the error is the same.</p>
  
  <p>I'm at the beginning and I'm not very good at it at the moment. If I have to work on directory, please be clear because I'm not confident with the terminal.</p>