You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-03-04 18:04:21

Tartiflette-debug
Member
Registered: 2023-03-27
Posts: 9

Migration GLPI 10.0.7 vers 10.0.12

Bonjour,

J'ai aujourd'hui une interrogation quant à la migration d'un serveur GLPI vers un nouveau.

Aujourd'hui nous sommes sur un GLPI 10.0.7 sur Debian 10 et souhaiterions profiter de la migration pour passer sur Debian 12 avec GLPI 10.0.12.

Nous avons donc effectué un dump mysql de notre ancienne infra vers la nouvelle et avons copié le répertoire glpi/files mais lorsque l'on complète le processus d'installation de GLPI 10.0.12 et que l'on se connecte on se rend compte qu'aucun des éléments n'apparait (tickets, utilisateurs, plugins, inventaires...), les compteurs restent à 0 et les pages vides, malgré la présence des fichiers sur le serveur.

Y a t-il une procédure particulière pour ce genre de migration ?

Merci

Last edited by Tartiflette-debug (2024-03-04 18:05:29)


GLPI : 10.0.13
OS : Debian 12
Glpi Inventory : 1.3.5
Form Creator : 2.13.9

Offline

#2 2024-03-06 09:37:05

Sico31
Member
Registered: 2018-09-24
Posts: 596

Re: Migration GLPI 10.0.7 vers 10.0.12

bonjour,
non aucun process inhabituel, j'ai fait exactement la même migration (mais sur un ubuntu Server).
Vous avez bien restauré la base mysql sur le nouveau serveur avant de lancer la migration de GLPI ?
Et bien choisis "Mise à jour" et non pas "nouvelle base" ?

par ailleurs, j'ai aussi copié les dossier plugins, marketplace et config en plus de files
La nouvelle procédure introduite avec la V10 permettant d'isoler ces fichiers du dossier GLPI devrait simplifier les MAJ .... mais à vois le nombre de post sur ce forum sur CE sujet, je n'y ai aps touché (d'autant plus que notre glpi reste en interne)
Cdlt


Manger un castor, c'est sauver un arbre.
Quand on est mort, on ne sait pas qu'on est mort ; c'est pour les autres que c'est difficile. Quand on est con, c'est pareil !

Offline

#3 2024-03-06 12:31:45

Tartiflette-debug
Member
Registered: 2023-03-27
Posts: 9

Re: Migration GLPI 10.0.7 vers 10.0.12

Bonjour,

Si je choisis "Mise à jour" j'obtiens une erreur la page suivante
image-2024-03-06-112252455.png
image-2024-03-06-105602311.png
Je précise que bien entendu, la BDD "db23_glpi" existe bel et bien et que l'import de la BDD a été réalisé sans retour d'erreur
Capture-d-cran-2024-03-06-110025.png
Capture-d-cran-2024-03-06-105906.png

Si je choisis "Installer"
image-2024-03-06-112522961.png
J'actualise la page: le logo que nous avions remplacé n'est pas là, et mes identifiants ne fonctionnent pas, celui qui fonctionne est "glpi/glpi" qui n'existe normalement plus dans la BDD restauré
image-2024-03-06-112613865.png
image-2024-03-06-112847900.png

De ce que je comprends c'est qu'il ne veut ni de ma BDD ni de mes fichiers de conf / images / plugins


GLPI : 10.0.13
OS : Debian 12
Glpi Inventory : 1.3.5
Form Creator : 2.13.9

Offline

#4 2024-03-06 13:29:30

Sico31
Member
Registered: 2018-09-24
Posts: 596

Re: Migration GLPI 10.0.7 vers 10.0.12

Le process de mise à jour permet de faire la migration directe de la base sur une nouvelle installation.
Je testerai d'installer la V10.0.7 sur ce nouveau serveur avec la base restaurée et de vérifier que tout est OK.
Puis de faire la migration vers la 10.0.12
En principe, on peut le faire directement ; je l'ai deja fait pour passer de la 10.0.1 à la 10.0.5 lors de notre changement de serveur.
(cela dit, comme pour mettre à jour, il faut placer la nouvelle installation dans un nouveau dossier, ça revient au même que de la faire en direct ... mais bon)


Manger un castor, c'est sauver un arbre.
Quand on est mort, on ne sait pas qu'on est mort ; c'est pour les autres que c'est difficile. Quand on est con, c'est pareil !

Offline

#5 2024-03-06 15:12:28

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,435
Website

Re: Migration GLPI 10.0.7 vers 10.0.12

Si vous avez choisi "Installer", vous avez écrasé la base de données avec une installation GLPI vide. Vous devez maintenant restaurer à partir d'une sauvegarde/dump. Si vous souhaitez mettre à jour GLPI, vous devez utiliser l'option "Mettre à jour".

L'erreur correspondant à la mise à jour s'affiche car elle ne trouve pas la version stockée dans la base de données que vous avez choisie. Soit il ne s'agissait pas de la base de données complète de l'ancien serveur, soit il manquait également ces informations dans votre base de données existante (cela semble peu probable).

Les informations de version qu'il vérifie sont stockées dans la table glpi_configs dans des enregistrements dont le contexte est "core" et les noms sont "version" et "dbversion".


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#6 2024-03-07 15:12:50

Tartiflette-debug
Member
Registered: 2023-03-27
Posts: 9

Re: Migration GLPI 10.0.7 vers 10.0.12

Bonjour,

Merci pour vos réponses.

Alors j'ai du nouveau, quand je fais un show tables sur le nouveau GLPI, ça me renvoi "Empty set (0,000 sec)" sachant que le fichier.sql pèse plus de 380Mb
Les tables sont bien présentes sur le GLPI de prod et l'export semble se dérouler correctement, aucune erreur ne m'est renvoyée...

Sur mon serveur de prod:

root@SRVPROD:~# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 183843
Server version: 10.3.39-MariaDB-0+deb10u2 Debian 10

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| glpibdd            |
| information_schema |
| mysql              |
| ocsbdd             |
| performance_schema |
+--------------------+
5 rows in set (0,000 sec)

MariaDB [(none)]> USE glpibdd;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [glpibdd]> SHOW tables;
+----------------------------------------------------------+
| Tables_in_glpibdd                                        |
+----------------------------------------------------------+
| glpi_agents                                              |
| glpi_agenttypes                                          |
| glpi_alerts                                              |
| glpi_apiclients                                          |
| glpi_applianceenvironments                               |
| glpi_appliances                                          |
| glpi_appliances_items                                    |
| glpi_appliances_items_relations                          |
| glpi_appliancetypes                                      |
| glpi_authldapreplicates                                  |
| glpi_authldaps                                           |
| glpi_authmails                                           |
| glpi_autoupdatesystems                                   |
| glpi_blacklistedmailcontents                             |
| glpi_blacklists                                          |
| glpi_budgets                                             |
| glpi_budgettypes                                         |
| glpi_businesscriticities                                 |
| glpi_cables                                              |
| glpi_cablestrands                                        |
| glpi_cabletypes                                          |
| glpi_calendars                                           |
| glpi_calendars_holidays                                  |
| glpi_calendarsegments                                    |
| glpi_cartridgeitems                                      |
| glpi_cartridgeitems_printermodels                        |
| glpi_cartridgeitemtypes                                  |
| glpi_cartridges                                          |
| glpi_certificates                                        |
| glpi_certificates_items                                  |
| glpi_certificatetypes                                    |
| glpi_changecosts                                         |
| glpi_changes                                             |
| glpi_changes_groups                                      |
| glpi_changes_items                                       |
| glpi_changes_problems                                    |
| glpi_changes_suppliers                                   |
| glpi_changes_tickets                                     |
| glpi_changes_users                                       |
| glpi_changetasks                                         |
| glpi_changetemplatehiddenfields                          |
| glpi_changetemplatemandatoryfields                       |
| glpi_changetemplatepredefinedfields                      |
| glpi_changetemplates                                     |
| glpi_changevalidations                                   |
| glpi_clusters                                            |
| glpi_clustertypes                                        |
| glpi_computerantiviruses                                 |
| glpi_computermodels                                      |
| glpi_computers                                           |
| glpi_computers_items                                     |
| glpi_computertypes                                       |
| glpi_computervirtualmachines                             |
| glpi_configs                                             |
| glpi_consumableitems                                     |
| glpi_consumableitemtypes                                 |
| glpi_consumables                                         |
| glpi_contacts                                            |
| glpi_contacts_suppliers                                  |
| glpi_contacttypes                                        |
| glpi_contractcosts                                       |
| glpi_contracts                                           |
| glpi_contracts_items                                     |
| glpi_contracts_suppliers                                 |
| glpi_contracttypes                                       |
| glpi_crontasklogs                                        |
| glpi_crontasks                                           |
| glpi_dashboards_dashboards                               |
| glpi_dashboards_filters                                  |
| glpi_dashboards_items                                    |
| glpi_dashboards_rights                                   |
| glpi_databaseinstancecategories                          |
| glpi_databaseinstances                                   |
| glpi_databaseinstancetypes                               |
| glpi_databases                                           |
| glpi_datacenters                                         |
| glpi_dcrooms                                             |
| glpi_devicebatteries                                     |
| glpi_devicebatterymodels                                 |
| glpi_devicebatterytypes                                  |
| glpi_devicecameramodels                                  |
| glpi_devicecameras                                       |
| glpi_devicecasemodels                                    |
| glpi_devicecases                                         |
| glpi_devicecasetypes                                     |
| glpi_devicecontrolmodels                                 |
| glpi_devicecontrols                                      |
| glpi_devicedrivemodels                                   |
| glpi_devicedrives                                        |
| glpi_devicefirmwaremodels                                |
| glpi_devicefirmwares                                     |
| glpi_devicefirmwaretypes                                 |
| glpi_devicegenericmodels                                 |
| glpi_devicegenerics                                      |
| glpi_devicegenerictypes                                  |
| glpi_devicegraphiccardmodels                             |
| glpi_devicegraphiccards                                  |
| glpi_deviceharddrivemodels                               |
| glpi_deviceharddrives                                    |
| glpi_devicememories                                      |
| glpi_devicememorymodels                                  |
| glpi_devicememorytypes                                   |
| glpi_devicemotherboardmodels                             |
| glpi_devicemotherboards                                  |
| glpi_devicenetworkcardmodels                             |
| glpi_devicenetworkcards                                  |
| glpi_devicepcimodels                                     |
| glpi_devicepcis                                          |
| glpi_devicepowersupplies                                 |
| glpi_devicepowersupplymodels                             |
| glpi_deviceprocessormodels                               |
| glpi_deviceprocessors                                    |
| glpi_devicesensormodels                                  |
| glpi_devicesensors                                       |
| glpi_devicesensortypes                                   |
| glpi_devicesimcards                                      |
| glpi_devicesimcardtypes                                  |
| glpi_devicesoundcardmodels                               |
| glpi_devicesoundcards                                    |
| glpi_displaypreferences                                  |
| glpi_documentcategories                                  |
| glpi_documents                                           |
| glpi_documents_items                                     |
| glpi_documenttypes                                       |
| glpi_domainrecords                                       |
| glpi_domainrecordtypes                                   |
| glpi_domainrelations                                     |
| glpi_domains                                             |
| glpi_domains_items                                       |
| glpi_domaintypes                                         |
| glpi_dropdowntranslations                                |
| glpi_enclosuremodels                                     |
| glpi_enclosures                                          |
| glpi_entities                                            |
| glpi_entities_knowbaseitems                              |
| glpi_entities_reminders                                  |
| glpi_entities_rssfeeds                                   |
| glpi_events                                              |
| glpi_fieldblacklists                                     |
| glpi_fieldunicities                                      |
| glpi_filesystems                                         |
| glpi_fqdns                                               |
| glpi_groups                                              |
| glpi_groups_knowbaseitems                                |
| glpi_groups_problems                                     |
| glpi_groups_reminders                                    |
| glpi_groups_rssfeeds                                     |
| glpi_groups_tickets                                      |
| glpi_groups_users                                        |
| glpi_holidays                                            |
| glpi_imageformats                                        |
| glpi_imageresolutions                                    |
| glpi_impactcompounds                                     |
| glpi_impactcontexts                                      |
| glpi_impactitems                                         |
| glpi_impactrelations                                     |
| glpi_infocoms                                            |
| glpi_interfacetypes                                      |
| glpi_ipaddresses                                         |
| glpi_ipaddresses_ipnetworks                              |
| glpi_ipnetworks                                          |
| glpi_ipnetworks_vlans                                    |
| glpi_items_clusters                                      |
| glpi_items_devicebatteries                               |
| glpi_items_devicecameras                                 |
| glpi_items_devicecameras_imageformats                    |
| glpi_items_devicecameras_imageresolutions                |
| glpi_items_devicecases                                   |
| glpi_items_devicecontrols                                |
| glpi_items_devicedrives                                  |
| glpi_items_devicefirmwares                               |
| glpi_items_devicegenerics                                |
| glpi_items_devicegraphiccards                            |
| glpi_items_deviceharddrives                              |
| glpi_items_devicememories                                |
| glpi_items_devicemotherboards                            |
| glpi_items_devicenetworkcards                            |
| glpi_items_devicepcis                                    |
| glpi_items_devicepowersupplies                           |
| glpi_items_deviceprocessors                              |
| glpi_items_devicesensors                                 |
| glpi_items_devicesimcards                                |
| glpi_items_devicesoundcards                              |
| glpi_items_disks                                         |
| glpi_items_enclosures                                    |
| glpi_items_kanbans                                       |
| glpi_items_operatingsystems                              |
| glpi_items_problems                                      |
| glpi_items_projects                                      |
| glpi_items_racks                                         |
| glpi_items_remotemanagements                             |
| glpi_items_softwarelicenses                              |
| glpi_items_softwareversions                              |
| glpi_items_tickets                                       |
| glpi_itilcategories                                      |
| glpi_itilfollowups                                       |
| glpi_itilfollowuptemplates                               |
| glpi_itils_projects                                      |
| glpi_itilsolutions                                       |
| glpi_knowbaseitemcategories                              |
| glpi_knowbaseitems                                       |
| glpi_knowbaseitems_comments                              |
| glpi_knowbaseitems_items                                 |
| glpi_knowbaseitems_knowbaseitemcategories                |
| glpi_knowbaseitems_profiles                              |
| glpi_knowbaseitems_revisions                             |
| glpi_knowbaseitems_users                                 |
| glpi_knowbaseitemtranslations                            |
| glpi_lineoperators                                       |
| glpi_lines                                               |
| glpi_linetypes                                           |
| glpi_links                                               |
| glpi_links_itemtypes                                     |
| glpi_locations                                           |
| glpi_lockedfields                                        |
| glpi_logs                                                |
| glpi_mailcollectors                                      |
| glpi_manuallinks                                         |
| glpi_manufacturers                                       |
| glpi_monitormodels                                       |
| glpi_monitors                                            |
| glpi_monitortypes                                        |
| glpi_networkaliases                                      |
| glpi_networkequipmentmodels                              |
| glpi_networkequipments                                   |
| glpi_networkequipmenttypes                               |
| glpi_networkinterfaces                                   |
| glpi_networknames                                        |
| glpi_networkportaggregates                               |
| glpi_networkportaliases                                  |
| glpi_networkportconnectionlogs                           |
| glpi_networkportdialups                                  |
| glpi_networkportethernets                                |
| glpi_networkportfiberchannels                            |
| glpi_networkportfiberchanneltypes                        |
| glpi_networkportlocals                                   |
| glpi_networkportmetrics                                  |
| glpi_networkports                                        |
| glpi_networkports_networkports                           |
| glpi_networkports_vlans                                  |
| glpi_networkporttypes                                    |
| glpi_networkportwifis                                    |
| glpi_networks                                            |
| glpi_notepads                                            |
| glpi_notifications                                       |
| glpi_notifications_notificationtemplates                 |
| glpi_notificationtargets                                 |
| glpi_notificationtemplates                               |
| glpi_notificationtemplatetranslations                    |
| glpi_notimportedemails                                   |
| glpi_objectlocks                                         |
| glpi_olalevelactions                                     |
| glpi_olalevelcriterias                                   |
| glpi_olalevels                                           |
| glpi_olalevels_tickets                                   |
| glpi_olas                                                |
| glpi_operatingsystemarchitectures                        |
| glpi_operatingsystemeditions                             |
| glpi_operatingsystemkernels                              |
| glpi_operatingsystemkernelversions                       |
| glpi_operatingsystems                                    |
| glpi_operatingsystemservicepacks                         |
| glpi_operatingsystemversions                             |
| glpi_passivedcequipmentmodels                            |
| glpi_passivedcequipments                                 |
| glpi_passivedcequipmenttypes                             |
| glpi_pcivendors                                          |
| glpi_pdumodels                                           |
| glpi_pdus                                                |
| glpi_pdus_plugs                                          |
| glpi_pdus_racks                                          |
| glpi_pdutypes                                            |
| glpi_pendingreasons                                      |
| glpi_pendingreasons_items                                |
| glpi_peripheralmodels                                    |
| glpi_peripherals                                         |
| glpi_peripheraltypes                                     |
| glpi_phonemodels                                         |
| glpi_phonepowersupplies                                  |
| glpi_phones                                              |
| glpi_phonetypes                                          |
| glpi_planningeventcategories                             |
| glpi_planningexternalevents                              |
| glpi_planningexternaleventtemplates                      |
| glpi_planningrecalls                                     |
| glpi_plugin_behaviors_configs                            |
| glpi_plugin_datainjection_infos                          |
| glpi_plugin_datainjection_mappings                       |
| glpi_plugin_datainjection_modelcsvs                      |
| glpi_plugin_datainjection_models                         |
| glpi_plugin_fields_containerdisplayconditions            |
| glpi_plugin_fields_containers                            |
| glpi_plugin_fields_fields                                |
| glpi_plugin_fields_labeltranslations                     |
| glpi_plugin_fields_profiles                              |
| glpi_plugin_fields_statusoverrides                       |
| glpi_plugin_formcreator_answers                          |
| glpi_plugin_formcreator_categories                       |
| glpi_plugin_formcreator_conditions                       |
| glpi_plugin_formcreator_entityconfigs                    |
| glpi_plugin_formcreator_formanswers                      |
| glpi_plugin_formcreator_forms                            |
| glpi_plugin_formcreator_forms_groups                     |
| glpi_plugin_formcreator_forms_languages                  |
| glpi_plugin_formcreator_forms_profiles                   |
| glpi_plugin_formcreator_forms_users                      |
| glpi_plugin_formcreator_forms_validators                 |
| glpi_plugin_formcreator_issues                           |
| glpi_plugin_formcreator_items_targettickets              |
| glpi_plugin_formcreator_questiondependencies             |
| glpi_plugin_formcreator_questionranges                   |
| glpi_plugin_formcreator_questionregexes                  |
| glpi_plugin_formcreator_questions                        |
| glpi_plugin_formcreator_sections                         |
| glpi_plugin_formcreator_targetchanges                    |
| glpi_plugin_formcreator_targetproblems                   |
| glpi_plugin_formcreator_targets_actors                   |
| glpi_plugin_formcreator_targettickets                    |
| glpi_plugin_genericobject_bornes                         |
| glpi_plugin_genericobject_dscboxes                       |
| glpi_plugin_genericobject_typefamilies                   |
| glpi_plugin_genericobject_types                          |
| glpi_plugin_glpiinventory_agentmodules                   |
| glpi_plugin_glpiinventory_collects                       |
| glpi_plugin_glpiinventory_collects_files                 |
| glpi_plugin_glpiinventory_collects_files_contents        |
| glpi_plugin_glpiinventory_collects_registries            |
| glpi_plugin_glpiinventory_collects_registries_contents   |
| glpi_plugin_glpiinventory_collects_wmis                  |
| glpi_plugin_glpiinventory_collects_wmis_contents         |
| glpi_plugin_glpiinventory_configs                        |
| glpi_plugin_glpiinventory_credentialips                  |
| glpi_plugin_glpiinventory_credentials                    |
| glpi_plugin_glpiinventory_deployfiles                    |
| glpi_plugin_glpiinventory_deploygroups                   |
| glpi_plugin_glpiinventory_deploygroups_dynamicdatas      |
| glpi_plugin_glpiinventory_deploygroups_staticdatas       |
| glpi_plugin_glpiinventory_deploymirrors                  |
| glpi_plugin_glpiinventory_deploypackages                 |
| glpi_plugin_glpiinventory_deploypackages_entities        |
| glpi_plugin_glpiinventory_deploypackages_groups          |
| glpi_plugin_glpiinventory_deploypackages_profiles        |
| glpi_plugin_glpiinventory_deploypackages_users           |
| glpi_plugin_glpiinventory_deployuserinteractiontemplates |
| glpi_plugin_glpiinventory_inventorycomputerstats         |
| glpi_plugin_glpiinventory_ipranges                       |
| glpi_plugin_glpiinventory_ipranges_snmpcredentials       |
| glpi_plugin_glpiinventory_statediscoveries               |
| glpi_plugin_glpiinventory_taskjoblogs                    |
| glpi_plugin_glpiinventory_taskjobs                       |
| glpi_plugin_glpiinventory_taskjobstates                  |
| glpi_plugin_glpiinventory_tasks                          |
| glpi_plugin_glpiinventory_timeslotentries                |
| glpi_plugin_glpiinventory_timeslots                      |
| glpi_plugin_manufacturersimports_configs                 |
| glpi_plugin_manufacturersimports_logs                    |
| glpi_plugin_manufacturersimports_models                  |
| glpi_plugin_mreporting_configs                           |
| glpi_plugin_mreporting_dashboards                        |
| glpi_plugin_mreporting_notifications                     |
| glpi_plugin_mreporting_preferences                       |
| glpi_plugin_mreporting_profiles                          |
| glpi_plugin_ocsinventoryng_bitlockerstatuses             |
| glpi_plugin_ocsinventoryng_configs                       |
| glpi_plugin_ocsinventoryng_customapps                    |
| glpi_plugin_ocsinventoryng_details                       |
| glpi_plugin_ocsinventoryng_ipdiscoverocslinks            |
| glpi_plugin_ocsinventoryng_networkports                  |
| glpi_plugin_ocsinventoryng_networkporttypes              |
| glpi_plugin_ocsinventoryng_networkshares                 |
| glpi_plugin_ocsinventoryng_notificationstates            |
| glpi_plugin_ocsinventoryng_notimportedcomputers          |
| glpi_plugin_ocsinventoryng_ocsadmininfoslinks            |
| glpi_plugin_ocsinventoryng_ocsalerts                     |
| glpi_plugin_ocsinventoryng_ocslinks                      |
| glpi_plugin_ocsinventoryng_ocsservers                    |
| glpi_plugin_ocsinventoryng_ocsservers_profiles           |
| glpi_plugin_ocsinventoryng_osinstalls                    |
| glpi_plugin_ocsinventoryng_proxysettings                 |
| glpi_plugin_ocsinventoryng_registrykeys                  |
| glpi_plugin_ocsinventoryng_ruleimportentities            |
| glpi_plugin_ocsinventoryng_runningprocesses              |
| glpi_plugin_ocsinventoryng_servers                       |
| glpi_plugin_ocsinventoryng_services                      |
| glpi_plugin_ocsinventoryng_snmpocslinks                  |
| glpi_plugin_ocsinventoryng_teamviewers                   |
| glpi_plugin_ocsinventoryng_threads                       |
| glpi_plugin_ocsinventoryng_winupdates                    |
| glpi_plugin_ocsinventoryng_winusers                      |
| glpi_plugins                                             |
| glpi_plugs                                               |
| glpi_printerlogs                                         |
| glpi_printermodels                                       |
| glpi_printers                                            |
| glpi_printers_cartridgeinfos                             |
| glpi_printertypes                                        |
| glpi_problemcosts                                        |
| glpi_problems                                            |
| glpi_problems_suppliers                                  |
| glpi_problems_tickets                                    |
| glpi_problems_users                                      |
| glpi_problemtasks                                        |
| glpi_problemtemplatehiddenfields                         |
| glpi_problemtemplatemandatoryfields                      |
| glpi_problemtemplatepredefinedfields                     |
| glpi_problemtemplates                                    |
| glpi_profilerights                                       |
| glpi_profiles                                            |
| glpi_profiles_reminders                                  |
| glpi_profiles_rssfeeds                                   |
| glpi_profiles_users                                      |
| glpi_projectcosts                                        |
| glpi_projects                                            |
| glpi_projectstates                                       |
| glpi_projecttasklinks                                    |
| glpi_projecttasks                                        |
| glpi_projecttasks_tickets                                |
| glpi_projecttaskteams                                    |
| glpi_projecttasktemplates                                |
| glpi_projecttasktypes                                    |
| glpi_projectteams                                        |
| glpi_projecttypes                                        |
| glpi_queuednotifications                                 |
| glpi_rackmodels                                          |
| glpi_racks                                               |
| glpi_racktypes                                           |
| glpi_recurrentchanges                                    |
| glpi_refusedequipments                                   |
| glpi_registeredids                                       |
| glpi_reminders                                           |
| glpi_reminders_users                                     |
| glpi_remindertranslations                                |
| glpi_requesttypes                                        |
| glpi_reservationitems                                    |
| glpi_reservations                                        |
| glpi_rssfeeds                                            |
| glpi_rssfeeds_users                                      |
| glpi_ruleactions                                         |
| glpi_rulecriterias                                       |
| glpi_rulematchedlogs                                     |
| glpi_rulerightparameters                                 |
| glpi_rules                                               |
| glpi_savedsearches                                       |
| glpi_savedsearches_alerts                                |
| glpi_savedsearches_users                                 |
| glpi_slalevelactions                                     |
| glpi_slalevelcriterias                                   |
| glpi_slalevels                                           |
| glpi_slalevels_tickets                                   |
| glpi_slas                                                |
| glpi_slms                                                |
| glpi_snmpcredentials                                     |
| glpi_socketmodels                                        |
| glpi_sockets                                             |
| glpi_softwarecategories                                  |
| glpi_softwarelicenses                                    |
| glpi_softwarelicensetypes                                |
| glpi_softwares                                           |
| glpi_softwareversions                                    |
| glpi_solutiontemplates                                   |
| glpi_solutiontypes                                       |
| glpi_ssovariables                                        |
| glpi_states                                              |
| glpi_suppliers                                           |
| glpi_suppliers_tickets                                   |
| glpi_suppliertypes                                       |
| glpi_taskcategories                                      |
| glpi_tasktemplates                                       |
| glpi_ticketcosts                                         |
| glpi_ticketrecurrents                                    |
| glpi_tickets                                             |
| glpi_tickets_contracts                                   |
| glpi_tickets_tickets                                     |
| glpi_tickets_users                                       |
| glpi_ticketsatisfactions                                 |
| glpi_tickettasks                                         |
| glpi_tickettemplatehiddenfields                          |
| glpi_tickettemplatemandatoryfields                       |
| glpi_tickettemplatepredefinedfields                      |
| glpi_tickettemplates                                     |
| glpi_ticketvalidations                                   |
| glpi_transfers                                           |
| glpi_unmanageds                                          |
| glpi_usbvendors                                          |
| glpi_usercategories                                      |
| glpi_useremails                                          |
| glpi_users                                               |
| glpi_usertitles                                          |
| glpi_virtualmachinestates                                |
| glpi_virtualmachinesystems                               |
| glpi_virtualmachinetypes                                 |
| glpi_vlans                                               |
| glpi_vobjects                                            |
| glpi_wifinetworks                                        |
+----------------------------------------------------------+
494 rows in set (0,003 sec)

MariaDB [glpibdd]>EXIT;

root@SRVPROD:~# mysqldump glpibdd -u root -p > /tmp/dump_file.sql
Enter password:
root@SRVPROD:~#


Transfert de la BDD avec WinSCP de /tmp vers /tmp sur le nouveau puis:

root@SRVNEW:/tmp# mysqldump db23_glpi -u root -p < /tmp/dump_file.sql
Enter password:
-- MariaDB dump 10.19  Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: db23_glpi
-- ------------------------------------------------------
-- Server version       10.11.6-MariaDB-0+deb12u1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2024-03-07 14:02:20

root@SRVNEW:/tmp# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 59
Server version: 10.11.6-MariaDB-0+deb12u1 Debian 12

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| db23_glpi          |
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
5 rows in set (0,001 sec)

MariaDB [(none)]> USE db23_glpi;
Database changed
MariaDB [db23_glpi]> SHOW TABLES;
Empty set (0,000 sec)

MariaDB [db23_glpi]>

Et là... C'est vide...


GLPI : 10.0.13
OS : Debian 12
Glpi Inventory : 1.3.5
Form Creator : 2.13.9

Offline

#7 2024-03-07 16:24:43

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,435
Website

Re: Migration GLPI 10.0.7 vers 10.0.12

Vous utilisez "mysqldump" pour importer la base de données ? Ce n'est pas correct. cet outil exporte uniquement des bases de données.

https://www.digitalocean.com/community/ … or-mariadb


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#8 2024-03-07 17:34:01

Sico31
Member
Registered: 2018-09-24
Posts: 596

Re: Migration GLPI 10.0.7 vers 10.0.12

mysqldump -u root -p glpi > mabaseSAV.sql pour sauvegarder
Mysql –u root -p glpi < mabaseSAV.sql pour importer
sachant que sur mon serveur, la base glpi se nomme ... glpi


Manger un castor, c'est sauver un arbre.
Quand on est mort, on ne sait pas qu'on est mort ; c'est pour les autres que c'est difficile. Quand on est con, c'est pareil !

Offline

#9 2024-03-08 16:46:30

Tartiflette-debug
Member
Registered: 2023-03-27
Posts: 9

Re: Migration GLPI 10.0.7 vers 10.0.12

Ah bravo... Si je fais n'importe quoi aussi...
Je regarde cela très vite et vous tiens informés ici

Merci beaucoup !


GLPI : 10.0.13
OS : Debian 12
Glpi Inventory : 1.3.5
Form Creator : 2.13.9

Offline

#10 2024-03-11 16:13:20

Tartiflette-debug
Member
Registered: 2023-03-27
Posts: 9

Re: Migration GLPI 10.0.7 vers 10.0.12

Bonjour,

ça m'a l'air d'être beaucoup mieux big_smile
A l'heure où j'écris, ça fonctionne !

Merci pour votre aide smile


GLPI : 10.0.13
OS : Debian 12
Glpi Inventory : 1.3.5
Form Creator : 2.13.9

Offline

#11 2024-03-18 15:28:37

Tartiflette-debug
Member
Registered: 2023-03-27
Posts: 9

Re: Migration GLPI 10.0.7 vers 10.0.12

Bonjour,
La migration c'est effectuée correctement.
J'ai cependant perdu quelques avatars sur mes utilisateurs... Il semblerait que ces derniers se trouvent dans /files/_pictures
Le dossier est bien présent (avec les images), mais les avatars absents du navigateur pour la moitié des utilisateurs...
Auriez-vous une idée?..


GLPI : 10.0.13
OS : Debian 12
Glpi Inventory : 1.3.5
Form Creator : 2.13.9

Offline

#12 2024-03-18 18:14:20

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,435
Website

Re: Migration GLPI 10.0.7 vers 10.0.12

Peut-être un problème de cache du navigateur ? Ou les autorisations sur certains fichiers empêchent le serveur Web de les lire ?


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB