Skip to main content

mode

How to enable mysql 5 compatibility mode

You can retrieve the current global or session sql_mode value with the following statements:

  1. SELECT @@GLOBAL.sql_mode;
  2. SELECT @@SESSION.sql_mode;

And set it with :

  1. Replace in my.ini the current sql-mode line with sql-mode="MYSQL40"
  2. Start MySQL with the option --sql-mode="MYSQL40"
  3. Execute the query SET GLOBAL sql_mode='MYSQL40'

If you need more help on the topic feel free to add a comment or create a new post on the Forum

Syndicate content