53 lines
1.7 KiB
Org Mode
53 lines
1.7 KiB
Org Mode
|
|
||
|
:PROPERTIES:
|
||
|
:ID: 6091e64d-7aa3-4c48-a1f9-7c0f58d1454a
|
||
|
:END:
|
||
|
|
||
|
#+title: comment-desactiver-de-facon-permanente-le-mode-only-full-group-by-de-mysql
|
||
|
#+post_ID: 470
|
||
|
#+post_slug: comment-desactiver-de-facon-permanente-le-mode-only-full-group-by-de-mysql
|
||
|
#+post_url: https://www.ciperbliss.com/2017/comment-desactiver-de-facon-permanente-le-mode-only-full-group-by-de-mysql
|
||
|
#+post_title: Comment désactiver de façon permanente le mode "only full group by" de mysql
|
||
|
#+post_tags: mysql, configuration
|
||
|
#+post_type: post
|
||
|
#+post_mime_types:
|
||
|
#+post_guid: undefined
|
||
|
#+post_status: publish
|
||
|
#+post_date_published: <2017-09-21T20:54:32>
|
||
|
#+post_date_modified: <2018-08-22T17:49:31>
|
||
|
#+post_index_page_roam_id: fa7f2a8c-2b94-4e42-bb4c-25c026ed7ff9
|
||
|
#+retrieved_from_db_at: <2024-11-18 16:25:08>
|
||
|
|
||
|
|
||
|
* Comment désactiver de façon permanente le mode "only full group by" de mysql
|
||
|
:PROPERTIES:
|
||
|
:CUSTOM_ID: comment-désactiver-de-façon-permanente-le-mode-only-full-group-by-de-mysql
|
||
|
:END:
|
||
|
Au pays de symfony,
|
||
|
[[http://www.doctrine-project.org][doctrine]] ne fait pas d'association
|
||
|
uniquement pleinement groupées.Si vous avez eu ce
|
||
|
problème de
|
||
|
*[[https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html][mode SQL]]
|
||
|
only_full_group_by*pour le résoudre de façon
|
||
|
permanente vous devez éditer un fichier de conf
|
||
|
personnalisé:
|
||
|
|
||
|
#+begin_example
|
||
|
sudo nano /etc/mysql/my.cnf
|
||
|
#+end_example
|
||
|
|
||
|
ajoutez ceci à la fin du fichier:
|
||
|
|
||
|
#+begin_example
|
||
|
[mysqld] sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
|
||
|
#+end_example
|
||
|
|
||
|
redémarrez votre serveur mysql
|
||
|
|
||
|
#+begin_example
|
||
|
sudo service mysql restart
|
||
|
#+end_example
|
||
|
|
||
|
et ça désactivera le problème de ONLY_FULL_GROUP_BY
|
||
|
pour TOUS vos utilisateurs.
|