Skip to content

Commit 9e4cefc

Browse files
committed
Set the code type in several quoted sections
1 parent dd79552 commit 9e4cefc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ MySQL client library defaults will be used for any parameters that are left out
169169
or set to nil. Relative paths are allowed, and may be required by managed
170170
hosting providers such as Heroku.
171171

172-
```
172+
``` ruby
173173
Mysql2::Client.new(
174-
...options as above...,
174+
# ...options as above...,
175175
:sslkey => '/path/to/client-key.pem',
176176
:sslcert => '/path/to/client-cert.pem',
177177
: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
206206
To bypass this restriction in the client, pass the option :secure_auth => false to Mysql2::Client.new().
207207
If using ActiveRecord, your database.yml might look something like this:
208208

209-
```
209+
``` yaml
210210
development:
211211
adapter: mysql2
212212
encoding: utf8
@@ -219,11 +219,12 @@ development:
219219
```
220220
221221
### Reading a MySQL config file
222+
222223
You may read configuration options from a MySQL configuration file by passing
223224
the `:default_file` and `:default_group` paramters. For example:
224225

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')
227228
```
228229

229230

0 commit comments

Comments
 (0)