Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Divers] Problème de mise à jour de la BDD

Avatar de l’utilisateur
Sshafi
Actif
Messages : 3882
Inscription : 01 juil. 2014, 16:08
Localisation : Albi

[Divers] Problème de mise à jour de la BDD

Message par Sshafi » 21 nov. 2016, 11:57

Mise à jour manuelle de la BDD

Si lors d'une mise à jour vous vous retrouvez avec un soucis de mise à jour de la base voila la commande pour les passer manuellement (ici la 1.92.0) :

Récupérer le mot de passe

Code : Tout sélectionner

cat /usr/share/nginx/www/jeedom/core/config/common.config.php
Récupérez le mot de passe (ici en gras) :

Code : Tout sélectionner

<?php
/* This file is part of Jeedom.
*
 * Jeedom is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
 * Jeedom is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
 * You should have received a copy of the GNU General Public License
* along with Jeedom. If not, see <http://www.gnu.org/licenses/>.
 */

 /* * ********************* Debug **************** */
 define('DEBUG', 1);
 
 /* * *********************** MySQL & Memcached ******************* */
 global $CONFIG;
 $CONFIG = array(
     //MySQL parametres
    'db' => array(
        'host' => 'localhost',
        'port' => 3306,
        'dbname' => 'jeedom',
        'username' => 'jeedom',
        'password' => 'dfshqsd78qs1df3sdfg',
    )
);
define('TRANSLATION_AUTODISCOVERY' , 1);
define('DESKTOP_CACHE' , 1);

Exécuter la mise à jour

Code : Tout sélectionner

mysql -ujeedom -p jeedom< /usr/share/nginx/www/jeedom/install/update/1.92.0.sql
Le mot de passe demandé et celui récupéré juste avant.
??? Menfin ...
VM ESXi # Aeon Lab Gen5 | RFXtrx433E | ...
Trucs & Astuces

Verrouillé

Revenir vers « Résolution de problèmes »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 3 invités