MySQL configuration to explain

1. If you find the case of database requirements more stringent, want to ignore the case, then find the configuration file, I am here etc / my.cnf, while others /etc/mysql/my.cnf. Found [mysqld], it is added below lower_case_table_names =. 1  . After modifying the configuration file, you need to restart the service to take effect.

2. MySQL format of a GROUP BY requirements are not rigorous. Such as the value of age field name field and thus not on the sex field corresponding to the following average age field. That should not be there. Then the time should not be executed by. This time can be used sql_mode = 'ONLY_FULL_GROUP_BY'


Published 12 original articles · won praise 12 · views 5501

Guess you like

Origin blog.csdn.net/qq_30426943/article/details/79833634