I tried the following :
java -jar liquibase.jar --driver=com.mysql.jdbc.Driver
--classpath=myapplication.jar
--changeLogFile=/liquibase/current-changelog.xml
--url=jdbc:mysql://localhost/liquibase --username=root
--password=root updateSQL > /tmp/script.sql
And I got the error :
Cannot find database driver: com.mysql.jdbc.Driver