Debian

apt-mirror et translation i18

Il faut modifier /usr/bin/apt-mirror pour gérer les translations ligne 355 pour wheezy ligne 363 pour squeeze il vous faut trouver ces lignes de codes foreach (@components) { add_url_to_download($url . $_ . « /binary- » . $arch . « /Release »); add_url_to_download($url . $_ . « /binary- » . $arch . « /Packages.gz »); add_url_to_download($url . $_ . « /binary- » . $arch . « /Packages.bz2 »); et …

apt-mirror et translation i18 Lire la suite »

Splitter un dump mysql avec Bash, en 1 dump par table

#!/bin/bash file=$1 # the input file directory= »$file-splitted » # the output directory output= »$directory/header » # the first file containing the header GREP= »DROP TABLE » # what we are looking for mkdir $directory # create the output directory while read line do # if the current line contains the wanted statement if [ $(echo « $line » | grep -c « $GREP ») …

Splitter un dump mysql avec Bash, en 1 dump par table Lire la suite »

Collectd, monitorer mysql

coté collectd Host « localhost » User « collectd » Password « Secrets of the Universe with Philo » Database « mysql » # MasterStats true coté Ligne de commande mysql -u root mysql> CREATE USER ‘collectd’@’localhost’ IDENTIFIED BY ‘password’; mysql> GRANT SELECT, PROCESS, SHOW DATABASES, SUPER ON *.* TO ‘collectd’@’localhost’; mysql> FLUSH PRIVILEGES;

Managing MySQL with Percona Toolkit by Frédéric Descamps | Colin Charles Agenda

Managing MySQL with Percona Toolkit by Frédéric DescampsPosted on 5/2/2012, 10:58 am, by Colin Charles, under MySQL.Frédéric Descamps of Percona.Percona Toolkit is Maatkit & Aspersa combined. Opensource and the tools are very useful for a DBA.You need Perl, DBI, DBD::mysql, Term::ReadKey. Most tools are written in Perl, and whatever is in Bash is being re-written …

Managing MySQL with Percona Toolkit by Frédéric Descamps | Colin Charles Agenda Lire la suite »

iocube loader, php 5.3 sous debian

Sous debian 64 bits mkdir /home/tmpioncube cd /home/tmpioncube wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && tar -zxf ioncube_loaders_lin_x86-64.tar.gz && cd ioncube && cp ioncube_loader_lin_5.3.so /usr/lib64/php5/ echo « zend_extension=/usr/lib64/php5/ioncube_loader_lin_5.3.so » > /etc/php5/conf.d/ioncube-loader.ini et sa roule

Retour en haut