title: Chef MySql Cookbook: MySql does not start after reboot
body: <p>I'm trying to install mysql recipe in vagrant. I use <a href="https://github.com/opscode-cookbooks/mysql" rel="nofollow">this</a> cookbook for that.</p>
  
  <p>MySql service starts after <code>vagrant up</code>, but after reboot I can't perform neither <code>vagrant provision</code> or <code>vagrant up</code>, because the server fails to start. </p>
  
  <p>I have realized, that Vagrant wipes <code>/var/run</code> directory; it creates mysqld directory (for socket), but not mysql (for pid file). MySql can't find the directory and can't create pid file. </p>
  
  <p>How can I make it work? Why Vagrant creates mysqld, but not mysql? </p>
  
  <p>I also tried it with different boxes (precise32, cloud daily precise64).</p>
  
  <p>Box: <a href="http://files.vagrantup.com/precise32.box" rel="nofollow">http://files.vagrantup.com/precise32.box</a>
  Vagrantfile:</p>
  
  <pre>
  Vagrant.configure("2") do |config|
    config.vm.box = "precise32"
    config.omnibus.chef_version = :latest
  
    config.vm.box_url = "http://files.vagrantup.com/precise32.box"
  
    config.vm.network :forwarded_port, guest: 8000, host: 8080
  
    config.vm.provider :virtualbox do |vb|
      vb.gui = true
    end
    config.vm.provision :chef_solo do |chef|
      chef.cookbooks_path = "./chef-repo/cookbooks"
      chef.add_recipe "apt"
      chef.add_recipe "mysql::server"
      chef.json = {
        "mysql" => {
                    "server_root_password" => "password",
                    "server_repl_password" => "password",
                    "server_debian_password" => "password"
                   }
      }
    end
  end
  
  </pre>