Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 0c21804

Browse files
Merge pull request magento-commerce/devdocs#2289 from magento-devdocs/MC-42252-mysql-guidelines
Add strict SQL mode guideline
2 parents 08e94b0 + cd79b3b commit 0c21804

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/guides/v2.3/install-gde/prereq/mysql.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Magento _strongly_ recommends you observe the following standard when you set up
1313

1414
* Magento uses [MySQL database triggers](http://dev.mysql.com/doc/refman/5.0/en/triggers.html){:target="_blank"} to improve database access during reindexing. These get created when the indexer mode is set to [schedule](https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-index.html#configure-indexers-1){:target="_blank"}. Magento does not support any custom triggers in the Magento database because custom triggers can introduce incompatibilities with future Magento versions.
1515
* Familiarize yourself with [these potential MySQL trigger limitations](http://dev.mysql.com/doc/mysql-reslimits-excerpt/5.1/en/stored-program-restrictions.html){:target="_blank"} before you continue.
16+
* To enhance your database security posture, enable the [`STRICT_ALL_TABLES`](https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_strict_all_tables) SQL mode to prevent storing invalid data values, which might cause unwanted database interactions.
1617
* If you use MySQL database replication, be aware that Magento does _not_ support MySQL statement-based replication. Make sure you use _only_ [row-based replication](http://dev.mysql.com/doc/refman/5.1/en/replication-formats.html){:target="_blank"}.
1718

1819
{:.bs-callout-warning}

src/guides/v2.4/install-gde/prereq/mysql.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Magento _strongly_ recommends you observe the following standard when you set up
1010

1111
* Magento uses [MySQL database triggers](https://dev.mysql.com/doc/refman/8.0/en/triggers.html){:target="_blank"} to improve database access during reindexing. These get created when the indexer mode is set to [schedule]({{page.baseurl}}/config-guide/cli/config-cli-subcommands-index.html#configure-indexers-1){:target="_blank"}. Magento does not support any custom triggers in the Magento database because custom triggers can introduce incompatibilities with future Magento versions.
1212
* Familiarize yourself with [these potential MySQL trigger limitations](https://dev.mysql.com/doc/mysql-reslimits-excerpt/8.0/en/stored-program-restrictions.html){:target="_blank"} before you continue.
13+
* To enhance your database security posture, enable the [`STRICT_ALL_TABLES`](https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_strict_all_tables) SQL mode to prevent storing invalid data values, which might cause unwanted database interactions.
1314
* If you use MySQL database replication, be aware that Magento does _not_ support MySQL statement-based replication. Make sure you use _only_ [row-based replication](https://dev.mysql.com/doc/refman/8.0/en/replication-formats.htmll){:target="_blank"}.
1415

1516
{:.bs-callout-warning}

0 commit comments

Comments
 (0)