www.webdeveloper.com
Results 1 to 3 of 3

Thread: Check if mysql is in strict mode

  1. #1
    Join Date
    Jul 2006
    Posts
    373

    Check if mysql is in strict mode

    Hi,

    i wonder if there is a php function or something that allows me to know for sure if strict mode is on or off, something like phpinfo(). This is because im sure i disabled strict mode but for some reason i still get errors that seem to indicate its still on.

    Thank you.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,432
    You could try running this query:
    Code:
    SELECT @@sql_mode
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Jul 2006
    Posts
    373
    Thanks. It says STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_ so that means its running on strict mode again! and i dont get why because i changed the configuration file and it was once on normal mode so i dont know why it went back to strict mode because i checked the config file and it hasnt changed since then. How can i fix this?

    Thank you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles