Let's see how we can install MySQL server and create a database and a database user.
Make sure that you have a cookbook called
my_cookbook and that the
run_list of your node includes
my_cookbook, as described in the Creating and using cookbooks recipe in Chapter 1, Chef Infrastructure.
Berksfile in your Chef repository includes
mma@laptop:~/chef-repo $ subl Berksfile
cookbook 'my_cookbook', path: './cookbooks/my_cookbook'