File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ Default: false
277
277
```
278
278
279
279
280
- ` rejectreadOnly =true` causes the driver to reject read-only connections. This
280
+ ` rejectReadOnly =true` causes the driver to reject read-only connections. This
281
281
is for a possible race condition during an automatic failover, where the mysql
282
282
client gets connected to a read-only replica after the failover.
283
283
@@ -292,6 +292,11 @@ If you are not relying on read-only transactions to reject writes that aren't
292
292
supposed to happen, setting this on some MySQL providers (such as AWS Aurora)
293
293
is safer for failovers.
294
294
295
+ Note that ERROR 1290 can be returned for a ` read-only ` server and this option will
296
+ cause a retry for that error. However the same error number is used for some
297
+ other cases. You should ensure your application will never cause an ERROR 1290
298
+ except for ` read-only ` mode when enabling this option.
299
+
295
300
296
301
##### ` strict `
297
302
You can’t perform that action at this time.
0 commit comments