Search code examples
phpmysqlstrict-mode

Determine MySql mode from PHP


Is there any way to find if mysql server is in strict mode or not from PHP? I need to find out this at runtime(in installation script), so I can inform user if his system satisfy script requirements.


Solution

  • SELECT @@sql_mode; will give what you want.