title: Mysql command from host not taking change
body: <p>I want to run a script on a mysql container, but when I am running it from the host it does not make the needed changes.</p>
  
  <p>The command that I run on my docker host is </p>
  
  <pre><code>docker exec  mysql mysql -u root -ppassword perks_camp &lt; ./1.0.1.sql
  </code></pre>
  
  <p>it says <code>mysql: [Warning] Using a password on the command line interface can be insecure.</code> which is expected, and it seems that the script inside is ran, but when I log in to the container's db, the changes are not applied.</p>
  
  <p>On the other hand, when I copy the file to the container and run the same command from inside the container <code>mysql -u root -ppassword perks_camp &lt; ./1.0.1.sql
  </code>, the changes are applied.</p>
  
  <p>What is wrong here? What am I missing?</p>