title: Configuring MYSQL with Datamapper
body: <p>I've long been a user of sqlite3 (with rails) and I never got a chance to try mysql, until now. I need to configure to use it along with Datamapper. Following the <a href="http://datamapper.org/getting-started.html" rel="nofollow">tutorial</a> I need to install the dm-mysql-adapter using this command:</p>
  
  <pre><code>sudo apt-get install libmysqlclient-dev
  </code></pre>
  
  <p>My <code>.rb</code> file contains the following code:</p>
  
  <pre><code>require 'data_mapper'
  DataMapper.setup(:default, "mysql://user:password@hostname/database")
  
  class Post
    include DataMapper::Resource
    property :id         , Serial
    property :title      , String
    property :body       , Text
    property :created_at , DateTime
  end
  </code></pre>
  
  <p>Which doesn't run and gives me the following error: </p>
  
  <pre><code>in `require': no such file to load -- dm-mysql-adapter (LoadError)
  </code></pre>
  
  <p>I believe, I need to set up a username and password to get mysql up and running and then establish a connection with Datamapper. Can someone please guide me.</p>
  
  <p>Thanks a lot!</p>