Skip to content

in `require': cannot load such file -- mysql (LoadError) #113

Description

@itamarshpak

Hey Im Getting This Error for some checks.
I read in some websites that the solution is to install mysql2 gem but still didnt helped me.

/opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- mysql (LoadError)
from /opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in require' from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-mysql-3.1.1/bin/check-mysql-replication-status.rb:33:in '
from /opt/sensu/embedded/bin/check-mysql-replication-status.rb:23:in load' from /opt/sensu/embedded/bin/check-mysql-replication-status.rb:23:in '`

Need to change - "Require 'mysql'" to "Require 'mysql2'" in ruby scripts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions