title: Cygwin w/ MySQL SELECT: Command not found... Running external .sql file
body: <p>I am very new to Cygwin, but I've been using Windows Command Prompt to run my MySQL questions and process external MySQL queries with no issues.</p>
  
  <p>I upgraded to Cgywin because it's just a nicer interface with a lot more options.</p>
  
  <p>I am calling an external script here: E:/dir/test.sql .. and I would like to note this test.sql works perfect in Windows Command Prompt when I run the query the same way under the MySQL CLI. MySQL server is installed and running as expected.</p>
  
  <pre><code>$ \. E:/dir/test.sql
  -bash: SELECT: command not found
  -bash: ,: command not found
  -bash: ,: command not found
  -bash: ,: command not found
  -bash: ,: command not found
  -bash: ,: command not found
  -bash: ,: command not found
  -bash: E:/dir/test.sql: line 9: syntax error near unexpected token `concat'
  -bash: E:/dir/test.sql: line 9: `INSERT(concat(b.geo_state, replace("b.mtr", ' ', ''), 
   '
  </code></pre>
  
  <p>After some research, I found if I run: $ which mysql, i get a linux like path: /usr/bin/mysql, and all I can think of is my mysql.exe is in a different directory that might be all the problem is.</p>
  
  <p>But I do not know or cannot locate how to change the default Cygwin path for MySQL (if this is even the likely cause.).</p>