Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-47584

Mysql database connection error notices should be more verbose

    XMLWordPrintable

    Details

    • Database:
      MySQL
    • Testing Instructions:
      Hide
      1. add an email to $CFG->emailconnectionerrorsto variable
      2. try to produce a (MySQL) database error (eg: shutdown database or add a bad password)
      3. see if you have some debug info lines in your email like 'Access denied for user' or 'Unknown MySQL server host'

      Tips for testing:
      1. Check your spam folder
      2. Delete moodledata/emailcount between tests or emails only get sent every 5 mins.

      Show
      add an email to $CFG->emailconnectionerrorsto variable try to produce a (MySQL) database error (eg: shutdown database or add a bad password) see if you have some debug info lines in your email like 'Access denied for user' or 'Unknown MySQL server host' Tips for testing: 1. Check your spam folder 2. Delete moodledata/emailcount between tests or emails only get sent every 5 mins.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-47584-28-database

      Description

      • Context:
        When you enable connection error reports, you don't have useful information like "which error" or "which web servers".
      • Steps to reproduce:
        1. add an email to $CFG->emailconnectionerrorsto variable
        2. try to produce a MySQL database error (eg: shutdown database or add a bad password)
      • Actual result:
        • a message is sent without "useful" information
      • Expected result:
        • have useful information like error message returned by php

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14