Demande #3949
Demande #3799: Migrer le parc des machines et VM vers Debian Buster
Migrer vers Debian Buster la vm dtc
Start date:
10/21/2019
Due date:
% Done:
100%
Estimated time:
Difficulté:
2 Facile
Related issues
History
Updated by François Poulain about 4 years ago
- Status changed from Nouveau to Résolu
- % Done changed from 0 to 100
Updated by Christian P. Momon about 4 years ago
Sur IRC:Freendode#april-admin le 04/11/2019 :
17:28 < cpm_screen> benj: en PHP7.3, il semble que dans les requêtes SQL insert et update, les valeurs '' ne soient plus gérées implicitement, faut leur mettre 0 avant l'appel sql. 17:28 < cpm_screen> ça te dit quelque chose ? 17:47 < PoluX> cpm_screen: STRICT_TRANS_TABLES est devenu le défaut dans mariadb depuis MariaDB 10.2.4. 17:47 < PoluX> et on est passé de 10.1.41-0 à 1:10.3.17 17:47 < cpm_screen> PoluX: cool et c'est mal si on remet comme avant ? Comment fais-ton? 17:48 < PoluX> il doit exister une conf :) 17:51 < PoluX> cpm_screen: j'essaierais ça : https://mariadb.com/kb/en/library/innodb-system-variables/#innodb_strict_mode 17:53 < PoluX> cpm_screen: =off, donc 17:53 < PoluX> cpm_screen: vu d'après https://jira.mariadb.org/browse/MDEV-7635 référencé dans https://mariadb.com/kb/en/library/mariadb-1024-changelog/
Rajouter dans le fichier root@dtc:/etc/mysql/conf.d/mysql.cnf :
[mysqld] # # * April custom required for vm drupal6 and vm dtc. # # sql_mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION sql_mode=ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Testable depuis la vm drupal6 :
mysql -u gdtc -h 172.16.0.6 -p gdtc Enter password: mysql> show global variables like 'sql_mode'; +---------------+-----------------------------------------------------------------------+ | Variable_name | Value | +---------------+-----------------------------------------------------------------------+ | sql_mode | ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION | +---------------+-----------------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> show variables like 'sql_mode'; +---------------+-----------------------------------------------------------------------+ | Variable_name | Value | +---------------+-----------------------------------------------------------------------+ | sql_mode | ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION | +---------------+-----------------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> INSERT INTO `benevalo` ( `actor_id`, `qualification`, `date`, `elapsed_time`, `costs`, `description`, `project`, `admin_info` ) VALUES ( '592', '2', '2019-11-04', '3480', '', 'test', 'Divers', '' ); Query OK, 1 row affected, 1 warning (0.00 sec) mysql>
Updated by Christian P. Momon over 2 years ago
- Related to Demande #5576: Migrer dtc sur Bullseye added