Skip to content

Commit 92f484e

Browse files
Clare Zheng (Shanghai Wicresoft Co Ltd)Clare Zheng (Shanghai Wicresoft Co Ltd)
authored andcommitted
Update content
1 parent b92cd3d commit 92f484e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/data-factory/connector-mysql.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ When copying data from MySQL, the following mappings are used from MySQL data ty
312312
| `year` |`Int` |`Int` |
313313

314314
>[!NOTE]
315-
>Storing bit(1) as Boolean in the legacy version was a bug and it was fixed in the recommended version. If you still use Boolean value in the recommended version, set the column type as tinybit(1).
315+
>Storing bit(1) as Boolean in the legacy version was a bug and it was fixed in the recommended version. If you still have Boolean value in the recommended version, use tinybit(1) data type.
316316
317317
## Lookup activity properties
318318

@@ -330,21 +330,21 @@ Here are steps that help you upgrade your MySQL connector:
330330

331331
### MySQL best practices
332332

333-
This section introduces some best practices for MySQL connector.
333+
This section introduces some best practices for MySQL connector recommended version.
334334

335335
#### Cannot load SSL key
336336

337337
If you are using MySQL connector recommended version with SSL Key as a connection property, you might hit the following issues:
338-
- Could not load the client key from your_pem_file
339-
- Unrecognized PEM header: -----BEGIN PRIVATE KEY-----
338+
- `Could not load the client key from your_pem_file`
339+
- `Unrecognized PEM header: -----BEGIN PRIVATE KEY-----`
340340

341341
The reason for these issues is the recommended version cannot decrypt the PCKS#8 format. You need to convert the PEM format to PCKS#1.
342342

343343
#### Treat tiny as Boolean
344344

345-
The recommended version treats tinyint(1) as Boolean type by default. For more information, see this [article](https://dev.mysql.com/doc/refman/8.0/en/numeric-type-syntax.html).
345+
The recommended version treats tinyint(1) as Boolean type by default, which is by design. For more information, see this [article](https://dev.mysql.com/doc/refman/8.0/en/numeric-type-syntax.html).
346346

347-
To have the connector return this as numeric, set `treatTinyAsBoolean=false` in the connection properties.
347+
To return tiny as numeric, set `treatTinyAsBoolean=false` in the connection properties.
348348

349349
#### Treat char(36) as GUID
350350

@@ -360,9 +360,9 @@ The recommended version cannot read zero or invalid date value. It is by default
360360

361361
MySQL permits you to store a "zero" value of '0000-00-00' as a "dummy date." In some cases, this is more convenient than using NULL values, and uses less data and index space. To disallow '0000-00-00', enable the [NO_ZERO_DATE](https://dev.mysql.com/doc/refman/8.4/en/sql-mode.html#sqlmode_no_zero_date) mode. For more information, see this [article](https://dev.mysql.com/doc/refman/8.4/en/date-and-time-types.html).
362362

363-
For zero date value, you can set `convertZeroDateTime=true` and `allowZeroDateTime=true`.
363+
To allow zero date value, you can set `convertZeroDateTime=true` and `allowZeroDateTime=true`.
364364

365-
For an invalid date value, you can modify your SQL to wrap the column as String type.
365+
To allow an invalid date value, you can modify your SQL to wrap the column as String type.
366366

367367
## Differences between the recommended and the legacy driver version
368368

0 commit comments

Comments
 (0)