French version

Ce week-end j'ai cassé mon blog, en effet suite à une erreur de ma part je me suis retrouvé à devoir changer le mot de passe de mon blog. Le problème c'est que ni sendmail ni postfix ne sont configuré sur mon serveur, donc je ne pouvais recevoir le mail contenant le nouveau mot de passe...

J'ai essayé :

  • De changer le mot de passe directement dans la table mysql
  • Changer le mot de passe par phpMyAdmin
  • Changer le code php pour lui demander de ne plus générer un mot de passe aléatoire mais un fixé

Aucune de ces solutions n'a permis d'ouvrir mon blog...

La solution :

  • J'ai commencé par sauvegarder la base du blog (phpMyAdmin)
  • Exportation de la base mysql dans un fichier texte
  • J'ai supprimé le fichier config.php
  • Réinstallation de dotclear 2
  • Importation des données de la base du premier blog dans le deuxième blog (par le fichier texte)
  • Création de tous les anciens billets (autrement dis j'ai recrée tous mes messages par copier-coller depuis phpMyAdmin dans le blog)

Conclusion :

  • La solution est valable pour les petits blog comme le mien où le nombre de messages n'est pas trop important
  • J'ai crée un utilisateur de sauvegarde sur mon blog, en cas de problème il me permettra de me connecter à l'interface utilisateur est corriger ce qui dois l'être
  • Je dois vraiment faire quelque chose pour mes mots de passe... :-)



English version

This week end I made a mistake that has the consequence to obliged me to change the password of my weblog. As neither sendmail or postfix are configured on my server I could not receive the mail with the new password.

I tried:

  • To change the password directly in the mysql's table
  • To change the password using phpMyAdmin
  • To change directly the code php to stop the generation of a random password and to put a fixed one instead.

My solution:

  • First make a copy of the database as backup (phpMyAdmin)
  • Export of the database itself into a text file (using phpMyAdmin)
  • delete the file config.php
  • Set up a new dotclear 2 (my weblog's plateform)
  • Import the data from the first database to the new one (using the text file)
  • Creation of all the old post (Basically I have have just copy-paste the data from phpMyAdmin to the weblog)

My conclusion:

  • This solution works but it is only feasible/suitable for small weblog like mine...
  • I created a new user to be able to have another access to dotclear's administrator interface in such a case
  • I really have to do something for my passwords...