title: Liquibase - how to generate a changelog for existing database
body: <p>I'm trying to use liquibase for generating the changeLog, starting by snapshoting the current state of my database.</p>
  
  <p>Environment details:</p>
  
  <ul>
  <li>OS: Windows 7 32 x86, </li>
  <li>Java JDK 1.7,</li>
  <li>mysql jdbc driver from MySQL </li>
  <li>liquibase 2.0.5.</li>
  </ul>
  
  <p>I run the following from command line:</p>
  
  <pre><code>liquibase --driver=com.mysql.jdbc.Driver --changeLogFile=./structure.xml --url="jdbc:mysql://mysql.mysite.com" --username=&lt;myuser&gt; --password=&lt;mypass&gt; generateChangeLog
  </code></pre>
  
  <p>It runs fine, and generated the output file. But the output file just contains:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd"/&gt;
  </code></pre>
  
  <p>And no tables are created on my database (I was expecting the two tables used for tracking).</p>
  
  <p>What am I missing?</p>
  
  <hr>
  
  <p>EDITS</p>
  
  <p>Yes, I'm referring to liquibasechanlog and liquibasechangelock tables. I know they should automatically appears on database. My question is why they aren't there. And yes, the provided user have the rights granted for doing such task.</p>
  
  <p>And it is not an empty database. It has near 20 tables, 10 views, data...</p>