title: Ruby on Rails Rake Error
body: <p><strong>EDIT:</strong> Solved the problem, thanks to this forum post: <a href="http://forums.aptana.com/viewtopic.php?f=20&amp;t=7563&amp;p=27407&amp;hilit=libmysql.dll#p27407" rel="nofollow noreferrer">http://forums.aptana.com/viewtopic.php?f=20&amp;t=7563&amp;p=27407&amp;hilit=libmysql.dll#p27407</a>. Thanks everyone!</p>
  
  <p>I've started learning RoR and have been trying to use <code>rake db:migrate</code> but I keep getting the same error. I can connect to the MySQL database using <code>C:\dev\railslist&gt;mysql -u root railslist_development -p</code>.
  <code>rake db:migrate --trace</code> produces the following:</p>
  
  <pre><code>C:\dev\railslist&gt;rake db:migrate --trace
  (in C:/dev/railslist)
  ** Invoke db:migrate (first_time)
  ** Invoke environment (first_time)
  ** Execute environment
  ** Execute db:migrate
  rake aborted!
  Mysql::Error: query: not connected: CREATE TABLE 'schema_migrations' ('version'
  varchar(255) NOT NULL) ENGINE=InnoDB
  C:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/connecti
  on_adapters/abstract_adapter.rb:219:in 'rescue in log'
  C:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/connecti
  on_adapters/abstract_adapter.rb:202:in 'log'
  C:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/connecti
  on_adapters/mysql_adapter.rb:323:in 'execute'
  C:/Ruby19/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/connecti
  on_adapters/abstract/schema_statements.rb:114:in 'create_table'
  ...
  </code></pre>
  
  <p>My database.yml file is as follows:</p>
  
  <pre><code>development:
    adapter: mysql
    database: railslist_development
    username: root
    password: **********
    host: localhost
  
    ...
  </code></pre>
  
  <p><strong>EDIT:</strong> Sorry, I got mixed up there... I <em>can</em> connect to the MySQL database using <code>mysql connect localhost</code> - it produces a long list of commands and variables. Also if I enter <code>mysql -h localhost -u root -p</code> I can log into the MySQL prompt. So to clarify: I <strong>can</strong> connect to the MySQL database via the command line, however in RoR Rake produces an error.</p>