Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorSetupCheckMySQL.php
| Show All 19 Lines | if ($max_allowed_packet < $recommended_minimum) { | ||||
| $max_allowed_packet, | $max_allowed_packet, | ||||
| $recommended_minimum); | $recommended_minimum); | ||||
| $this->newIssue('mysql.max_allowed_packet') | $this->newIssue('mysql.max_allowed_packet') | ||||
| ->setName(pht('Small MySQL "max_allowed_packet"')) | ->setName(pht('Small MySQL "max_allowed_packet"')) | ||||
| ->setMessage($message); | ->setMessage($message); | ||||
| } | } | ||||
| $mode_string = queryfx_one($conn_raw, "SELECT @@sql_mode"); | $mode_string = queryfx_one($conn_raw, 'SELECT @@sql_mode'); | ||||
| $modes = explode(',', $mode_string['@@sql_mode']); | $modes = explode(',', $mode_string['@@sql_mode']); | ||||
| if (!in_array('STRICT_ALL_TABLES', $modes)) { | if (!in_array('STRICT_ALL_TABLES', $modes)) { | ||||
| $summary = pht( | $summary = pht( | ||||
| "MySQL is not in strict mode, but using strict mode is strongly ". | 'MySQL is not in strict mode, but using strict mode is strongly '. | ||||
| "encouraged."); | 'encouraged.'); | ||||
| $message = pht( | $message = pht( | ||||
| "On your MySQL instance, the global %s is not set to %s. ". | "On your MySQL instance, the global %s is not set to %s. ". | ||||
| "It is strongly encouraged that you enable this mode when running ". | "It is strongly encouraged that you enable this mode when running ". | ||||
| "Phabricator.\n\n". | "Phabricator.\n\n". | ||||
| "By default MySQL will silently ignore some types of errors, which ". | "By default MySQL will silently ignore some types of errors, which ". | ||||
| "can cause data loss and raise security concerns. Enabling strict ". | "can cause data loss and raise security concerns. Enabling strict ". | ||||
| "mode makes MySQL raise an explicit error instead, and prevents this ". | "mode makes MySQL raise an explicit error instead, and prevents this ". | ||||
| Show All 23 Lines | |||||