Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14041969
D8847.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D8847.diff
View Options
diff --git a/src/applications/config/check/PhabricatorSetupCheckMySQL.php b/src/applications/config/check/PhabricatorSetupCheckMySQL.php
--- a/src/applications/config/check/PhabricatorSetupCheckMySQL.php
+++ b/src/applications/config/check/PhabricatorSetupCheckMySQL.php
@@ -33,25 +33,26 @@
"encouraged.");
$message = pht(
- "On your MySQL instance, the global sql_mode is not set to ".
- "'STRICT_ALL_TABLES'. It is strongly encouraged that you enable this ".
- "mode when running Phabricator.\n\n".
- "By default, MySQL will fail silently and continue when certain ".
- "error conditions occur. Sometimes contuining does the wrong thing. ".
- "For example, inserting too much data into a column will cause ".
- "silent truncation (and thus data loss) instead of failing in an ".
- "obvious way that we can fix. These behaviors can also create ".
- "security risks. Enabling strict mode raises an explicit error ".
- "instead and prevents this entire class of problem from doing any ".
- "damage.\n\n".
+ "On your MySQL instance, the global %s is not set to %s. ".
+ "It is strongly encouraged that you enable this mode when running ".
+ "Phabricator.\n\n".
+ "By default MySQL will silently ignore some types of errors, which ".
+ "can cause data loss and raise security concerns. Enabling strict ".
+ "mode makes MySQL raise an explicit error instead, and prevents this ".
+ "entire class of problems from doing any damage.\n\n".
"You can find more information about this mode (and how to configure ".
"it) in the MySQL manual. Usually, it is sufficient to add this to ".
- "your 'my.cnf' file:\n\n".
+ "your %s file (in the %s section) and then restart %s:\n\n".
"%s\n".
"(Note that if you run other applications against the same database, ".
"they may not work in strict mode. Be careful about enabling it in ".
"these cases.)",
- phutil_tag('pre', array(), 'sql-mode=STRICT_ALL_TABLES'));
+ phutil_tag('tt', array(), 'sql_mode'),
+ phutil_tag('tt', array(), 'STRICT_ALL_TABLES'),
+ phutil_tag('tt', array(), 'my.cnf'),
+ phutil_tag('tt', array(), '[mysqld]'),
+ phutil_tag('tt', array(), 'mysqld'),
+ phutil_tag('pre', array(), 'sql_mode=STRICT_ALL_TABLES'));
$this->newIssue('mysql.mode')
->setName(pht('MySQL STRICT_ALL_TABLES Mode Not Set'))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 12, 11:16 PM (1 w, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6721675
Default Alt Text
D8847.diff (2 KB)
Attached To
Mode
D8847: Clarify STRICT_ALL_TABLES instructions
Attached
Detach File
Event Timeline
Log In to Comment