ruby on rails - Ignore SSL for MySQL in database.yml -
i want set database.yml (or wherever else more appropriate) ignore ssl certificate when trying connect database. know bad practice temporary thing need.
to give example of i'm trying do, want mimic sql connection command:
mysql --ssl=0 -h 10.10.10.10 -u admincreds -p i have tried putting each of following parameters in last line (sslca, sslkey, , sslcert) in database.yml configuration such:
development: <<: *default host: 10.10.10.10 username: admincreds password: password database: database sslca/sslkey/sslcert: false but i'm still getting ssl error expect:
.rvm/gems/ruby-2.2.2/gems/mysql2-0.3.21/lib/mysql2/client.rb:70:in `connect': ssl connection error: error:00000001:lib(0):func(0):reason(1) (mysql2::error) is there different parameter can put in can skip on or not use ssl in database.yml or elsewhere? need run simple script.
according mysql2 documentation should set,
secure_auth: false when using yaml conf activerecord connection.
Comments
Post a Comment