File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -169,9 +169,9 @@ MySQL client library defaults will be used for any parameters that are left out
169
169
or set to nil. Relative paths are allowed, and may be required by managed
170
170
hosting providers such as Heroku.
171
171
172
- ```
172
+ ``` ruby
173
173
Mysql2 ::Client .new (
174
- ...options as above...,
174
+ # ...options as above...,
175
175
:sslkey => ' /path/to/client-key.pem' ,
176
176
:sslcert => ' /path/to/client-cert.pem' ,
177
177
:sslca => ' /path/to/ca-cert.pem' ,
@@ -206,7 +206,7 @@ The MySQL 5.6.5 client library may also refuse to attempt a connection if provid
206
206
To bypass this restriction in the client, pass the option : secure_auth => false to Mysql2::Client.new().
207
207
If using ActiveRecord, your database.yml might look something like this:
208
208
209
- ```
209
+ ``` yaml
210
210
development :
211
211
adapter : mysql2
212
212
encoding : utf8
@@ -219,11 +219,12 @@ development:
219
219
` ` `
220
220
221
221
### Reading a MySQL config file
222
+
222
223
You may read configuration options from a MySQL configuration file by passing
223
224
the ` :default_file` and `:default_group` paramters. For example:
224
225
225
- ```
226
- client = Mysql2::Client.new(:default_file => '/user/.my.cnf', :default_group => 'client')
226
+ ` ` ` ruby
227
+ Mysql2::Client.new(:default_file => '/user/.my.cnf', :default_group => 'client')
227
228
` ` `
228
229
229
230
You can’t perform that action at this time.
0 commit comments