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

Mysql database connection error notices should be more verbose

    XMLWordPrintable

Details

    • MySQL
    • MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MDL-47584-28-database
    • 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.

    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

            jboulen Julien Boulen
            jboulen Julien Boulen
            Adrian Greeve Adrian Greeve
            Damyon Wiese Damyon Wiese
            Dave Cooper Dave Cooper
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Nov/14