{"action":"created","issue":{"url":"https://api.github.com/repos/opscode-cookbooks/database/issues/141","labels_url":"https://api.github.com/repos/opscode-cookbooks/database/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/opscode-cookbooks/database/issues/141/comments","events_url":"https://api.github.com/repos/opscode-cookbooks/database/issues/141/events","html_url":"https://github.com/opscode-cookbooks/database/issues/141","id":60221297,"number":141,"title":"cannot load such file -- mysql2","user":{"login":"ikozel","id":3869641,"avatar_url":"https://avatars.githubusercontent.com/u/3869641?v=3","gravatar_id":"","url":"https://api.github.com/users/ikozel","html_url":"https://github.com/ikozel","followers_url":"https://api.github.com/users/ikozel/followers","following_url":"https://api.github.com/users/ikozel/following{/other_user}","gists_url":"https://api.github.com/users/ikozel/gists{/gist_id}","starred_url":"https://api.github.com/users/ikozel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikozel/subscriptions","organizations_url":"https://api.github.com/users/ikozel/orgs","repos_url":"https://api.github.com/users/ikozel/repos","events_url":"https://api.github.com/users/ikozel/events{/privacy}","received_events_url":"https://api.github.com/users/ikozel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-07T19:46:06Z","updated_at":"2015-03-07T20:55:04Z","closed_at":null,"body":"I'm using:\r\ncookbook \"database\", \"4.0.3\"\r\nand have installed gem:  mysql2 (0.3.18) \r\nalso depend on: cookbook 'mysql2_chef_gem'\r\nalso installed: mysql-5.6.23 \r\n\r\nAny idea what is missing? \r\n\r\nBut still getting this error: \r\n\r\n mysql_database[flite_igor] action create\r\n ================================================================================\r\n           Error executing action `create` on resource 'mysql_database[flite_igor]'\r\n           ================================================================================\r\n           \r\n           LoadError\r\n           ---------\r\n           cannot load such file -- mysql2\r\n           \r\n           Cookbook Trace:\r\n           ---------------\r\n           /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:103:in `test_client'\r\n           /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:37:in `block in <class:Mysql>'\r\n           \r\n"},"comment":{"url":"https://api.github.com/repos/opscode-cookbooks/database/issues/comments/77709542","html_url":"https://github.com/opscode-cookbooks/database/issues/141#issuecomment-77709542","issue_url":"https://api.github.com/repos/opscode-cookbooks/database/issues/141","id":77709542,"user":{"login":"someara","id":69068,"avatar_url":"https://avatars.githubusercontent.com/u/69068?v=3","gravatar_id":"","url":"https://api.github.com/users/someara","html_url":"https://github.com/someara","followers_url":"https://api.github.com/users/someara/followers","following_url":"https://api.github.com/users/someara/following{/other_user}","gists_url":"https://api.github.com/users/someara/gists{/gist_id}","starred_url":"https://api.github.com/users/someara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someara/subscriptions","organizations_url":"https://api.github.com/users/someara/orgs","repos_url":"https://api.github.com/users/someara/repos","events_url":"https://api.github.com/users/someara/events{/privacy}","received_events_url":"https://api.github.com/users/someara/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T20:55:04Z","updated_at":"2015-03-07T20:55:04Z","body":"Like this:\n\nhttps://gist.github.com/someara/ae50488f472d8e2f1352\n\n-s\n\nOn Sat, Mar 7, 2015 at 3:03 PM, Igor Kozel <notifications@github.com> wrote:\n\n> something like this?\n>\n> include_recipe \"mysql2_chef_gem\"\n> mysql_connection_info = {  :host     => 'localhost',  :username =>\n> 'mysql',  :password => 'ssss'}\n>\n> On Saturday, March 7, 2015 11:47 AM, Sean OMeara <notifications@github.com>\n> wrote:\n>\n>\n> You need to put a mysql2_chef_gem resource in a recipe somewhere before\n> using a mysql_database resource\n>\n>\n>\n> —\n> Sent from Mailbox\n>\n> On Sat, Mar 7, 2015 at 2:46 PM, Igor Kozel <notifications@github.com>\n> wrote:\n>\n> > I'm using:\n> > cookbook \"database\", \"4.0.3\"\n> > and have installed gem: mysql2 (0.3.18)\n> > also depend on: cookbook 'mysql2_chef_gem'\n> > also installed: mysql-5.6.23\n> > Any idea what is missing?\n> > But still getting this error:\n> > mysql_database[flite_igor] action create\n> >\n> ================================================================================\n> > Error executing action `create` on resource 'mysql_database[flite_igor]'\n> >\n> ================================================================================\n> >\n> > LoadError\n> > ---------\n> > cannot load such file -- mysql2\n> >\n> > Cookbook Trace:\n> > ---------------\n> >\n> /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:103:in\n> `test_client'\n> >\n> /tmp/kitchen/cache/cookbooks/database/libraries/provider_database_mysql.rb:37:in\n> `block in <class:Mysql>'\n> >\n> > ---\n> > Reply to this email directly or view it on GitHub:\n> > https://github.com/opscode-cookbooks/database/issues/141—\n>\n> Reply to this email directly or view it on GitHub.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/opscode-cookbooks/database/issues/141#issuecomment-77707280>\n> .\n>\n"}}