Suppress specific MySQL warning message

Nathan J.B.

We're getting a Headers and client library minor version mismatch message and we have a path to resolving the actual warning, but for now we need to suppress it.

But! We need to keep all other warnings.

So, is there a way to suppress this single error message?

Pierre

You can use set_error_handler and check for the specific message, then just return false in cases where you want the use default error handling

E.G

set_error_handler(function ($errno, $errstr, $errfile, $errline) {
    if (false === strpos($errstr, 'Headers and client library minor version mismatch')) {
        return false;
    }
});

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Intel Fortran Compiler (ifort) suppress specific warning message

From Dev

Intel Fortran Compiler (ifort) suppress specific warning message

From Dev

How to suppress a specific warning in Swift

From Dev

Unable to suppress clipboard warning message when closing a file

From Dev

Suppress Azure Stop-AzureRMVM cmdlet warning message box

From Dev

How to suppress warning message in R regarding closing unused connection?

From Dev

How to suppress a specific warning sent by cron daemon to email?

From Dev

How to suppress MaxPermSize warning?

From Dev

How to suppress Scalastyle warning?

From Dev

Suppress Swift compiler warning

From Dev

How to suppress matplotlib warning?

From Dev

suppress warning messages in gnupg

From Dev

Generic Function Macros and How to Suppress Specific GCC Warning: "Pointer Type Mismatch in Conditional Expression"

From Dev

Generic Function Macros and How to Suppress Specific GCC Warning: "Pointer Type Mismatch in Conditional Expression"

From Dev

Suppress library message output

From Dev

tryCatch suppress error message

From Dev

Suppress error message in R

From Dev

Suppress error message in R

From Dev

Suppress server message in rsync

From Java

Suppress warning messages using mysql from within Terminal, but password written in bash script

From Dev

Suppress Gradle Warning in Android Studio?

From Dev

Suppress lint warning on view level

From Dev

kotlin suppress warning deprecated for Android

From Dev

Suppress 'Warning: no access to tty' in ssh

From Dev

Suppress warning:deleting 'void*' is undefined

From Dev

msvc precompiled header warning suppress

From Dev

Suppress “Ambiguous class resolution” warning

From Dev

Suppress rsOverlappingReportItems warning in RDLC files

From Dev

Suppress API level warning in code

Related Related

  1. 1

    Intel Fortran Compiler (ifort) suppress specific warning message

  2. 2

    Intel Fortran Compiler (ifort) suppress specific warning message

  3. 3

    How to suppress a specific warning in Swift

  4. 4

    Unable to suppress clipboard warning message when closing a file

  5. 5

    Suppress Azure Stop-AzureRMVM cmdlet warning message box

  6. 6

    How to suppress warning message in R regarding closing unused connection?

  7. 7

    How to suppress a specific warning sent by cron daemon to email?

  8. 8

    How to suppress MaxPermSize warning?

  9. 9

    How to suppress Scalastyle warning?

  10. 10

    Suppress Swift compiler warning

  11. 11

    How to suppress matplotlib warning?

  12. 12

    suppress warning messages in gnupg

  13. 13

    Generic Function Macros and How to Suppress Specific GCC Warning: "Pointer Type Mismatch in Conditional Expression"

  14. 14

    Generic Function Macros and How to Suppress Specific GCC Warning: "Pointer Type Mismatch in Conditional Expression"

  15. 15

    Suppress library message output

  16. 16

    tryCatch suppress error message

  17. 17

    Suppress error message in R

  18. 18

    Suppress error message in R

  19. 19

    Suppress server message in rsync

  20. 20

    Suppress warning messages using mysql from within Terminal, but password written in bash script

  21. 21

    Suppress Gradle Warning in Android Studio?

  22. 22

    Suppress lint warning on view level

  23. 23

    kotlin suppress warning deprecated for Android

  24. 24

    Suppress 'Warning: no access to tty' in ssh

  25. 25

    Suppress warning:deleting 'void*' is undefined

  26. 26

    msvc precompiled header warning suppress

  27. 27

    Suppress “Ambiguous class resolution” warning

  28. 28

    Suppress rsOverlappingReportItems warning in RDLC files

  29. 29

    Suppress API level warning in code

HotTag

Archive