Hi
- User
Hi
- Assistant
there! How can I assist you today?
- User
set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'; not working
- Assistant
If the command
set global sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';is not working, it could be due to several reasons. Here are a few things you can try:-
Make sure you have the necessary privileges to modify global variables. You should have the
SUPERprivilege to execute this command. Check if you have this privilege by running the command:SHOW GRANTS FOR CURRENT_USER();. -
Ensure that there are no syntax errors in the command. Check for any typos or missing quotes and try executing the command again.
-
If the command still doesn't work, you can try modifying the
my.cnformy.inifile directly to set the variable.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.