MySQL permissions for backup
GRANT SHOW DATABASES, SELECT, LOCK TABLES, RELOAD ON *.* to backup@localhost IDENTIFIED BY ‘password’; FLUSH PRIVILEGES; Note Create a specific user for backups purpose with… Read More »MySQL permissions for backup
GRANT SHOW DATABASES, SELECT, LOCK TABLES, RELOAD ON *.* to backup@localhost IDENTIFIED BY ‘password’; FLUSH PRIVILEGES; Note Create a specific user for backups purpose with… Read More »MySQL permissions for backup
Note I’m not loading a .jar library, I’m only loading a .class, which implements my library functions. To test this code you must have in… Read More »Loading a dinamic Library
//desde la plantilla $sf_user->getUserId(); $sf_user->getUserName(); //desde la accion de symfony $userId=sfContext::getInstance()->getUser()->getGuardUser()->getId(); ó $usr = $this->getUser(); //hallar el id si esta auntenticado if($usr->isAuthenticated()){ $userId = $usr->getGuardUser()->getId();… Read More »Recuperar los datos del usuario autenthicado
Note Utilisation de INET_ATON de MySQL pour trier sur les IP #!/usr/bin/perl -w use strict; use warnings; use DBI; #Connection à la base de donnes… Read More »Requete SQL sur la base d’OCS Inventory en Perl
Crée un fichier ‘sql.tar.gz’ à partir de logs d’erreur ‘sql-2008-03*’ : tar cvfz sql.tar.gz sql-2008-03* puis déplace le fichier dans le répertoire supérieur : mv… Read More »Créer un fichier compressé tar.gz sur un serveur Unix