title: How to import sql file into a bash script
body: <p>On Debian, I want to import a huge sql file with a command in a bash script. Currently, I use this command:</p>
  
  <pre><code>mysql -u root -p myDatabase &lt; my_backup.sql
  </code></pre>
  
  <p>But that's not fine in a bash script because it asks for the root password ! I tried to provide it in the command with the -p argument, but it doesn't seems to work... Do someone have a solution ?</p>
  
  <p>Thanks</p>