title: MySQL JDBC Driver Using Flyway
body: <p>In my ~/.bashrc:</p>
  
  <pre><code>export CLASSPATH=~/mysqljdbc/mysql-connector-java-5.1.21-bin.jar
  </code></pre>
  
  <p>CLASSPATH var is correct:</p>
  
  <pre><code>ray@ubuntu:~$ echo $CLASSPATH
  /home/ray/mysqljdbc/mysql-connector-java-5.1.21-bin.jar
  </code></pre>
  
  <p>Trying to run it:</p>
  
  <pre><code>ray@ubuntu:/var/www/project$ sh ~/flyway-commandline-1.7/flyway.sh -driver=com.mysql.jdbc.Driver -user=root -p=password -url=jdbc:mysql://localhost:3306/project init
  Flyway (Command-line Tool) v.1.7
  
  FlywayException: Unable to instantiate jdbc driver: com.mysql.jdbc.Driver
  Occured in com.googlecode.flyway.core.util.jdbc.DriverDataSource.&lt;init&gt;() at line 93
  </code></pre>
  
  <p>Any ideas why it can't find the driver for this?</p>
  
  <p>Thanks!</p>