What you set through the client is at the session level. Of course it will be invalid after restarting. If you want to set it at the global level, you need to modify it in the mysql configuration document
1. SET global sql_mode = 'NO_UNSIGNED_SUBTRACTION,NO_ENGINE_SUBSTITUTION'; 2. Add configuration under [mysqld] of my.cnf: sql_mode = NO_UNSIGNED_SUBTRACTION,NO_ENGINE_SUBSTITUTION
What you set through the client is at the session level. Of course it will be invalid after restarting. If you want to set it at the global level, you need to modify it in the mysql configuration document
1. SET global sql_mode = 'NO_UNSIGNED_SUBTRACTION,NO_ENGINE_SUBSTITUTION';
2. Add configuration under [mysqld] of my.cnf: sql_mode = NO_UNSIGNED_SUBTRACTION,NO_ENGINE_SUBSTITUTION
How did you solve it? I also encountered the same problem