Script en Bash, qui découpe un dumpSQL en un seul fichier pour le découper en 1 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 […]
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;
MySQL Error 23 on Linux | Chris Johnson’s Blog
If you have ever encountered a “23 error” you are most likely running MySQL on a windows machine. The error looks something like this: ERROR 23 (HY000): Out of resources when opening file ‘./somedb/sometable.MYD’ (Errcode: 24) What this error typically means is that MySQL has exceeded the limit for the number of files you can […]
Using ODBC in the core – FreeSWITCH Wiki
2. Install the unixODBC driver You will need to obtain the ODBC for your chosen database. Instructions for obtaining the drivers for MySQL or PostgreSQL are provided below. For MySQL: sudo apt-get install libmyodbc For PostgreSQL sudo apt-get install odbc-postgresql 3. Configure /etc/odbc.ini & /etc/odbcinst.ini Add the following with the correct information into your odbc.ini […]
Suivre en temps réel l’activité de son serveur GNU/Linux | L’admin sous GNU / Linux – Blog Libre
Suivre en temps réel l’activité de son serveur GNU/Linux Par Pierre-Yves Dubreucq – 13 janvier 2010Publié dans : Astuces Voici un petit billet visant à recencer les applications en mode console permettant de suivre l’activité de son serveur GNU/Linux avec le principe de fonctionnement la commande top. htop permet de monitorer l’activité de son serveur […]
Tutoriel sur UTF-8 avec PHP et MySQL
UTF-8 PHP MYSQL (histoire d’encodage) * Accueil * UTF-8 PHP MySql * Barre de progression d’upload en PHP Encodage et programmation Les caractères qui s’affichent sur les écrans d’ordinateur, comme toute donnée informatique, ne sont qu’une sucession de 0 et de 1 du point de vue de la machine. C’est le nombre et l’ordonnance de […]
Postfix Flush the Mail Queue
Traditionally you use the « sendmail -q » command to flush mail queue under Sendmail MTA. Under Postfix MTA, just enter the following command to flush the mail queue: # postfix flush OR # postfix -f To see mail queue, enter: # mailq To remove all mail from the queue, enter: # postsuper -d ALL To remove […]
Postfix, Dovecot, et des utilisateurs virtuels sans Mysql – Effraie@blog
postfixUn petit mémo sur la façon de configurer postfix et dovecot pour héberger des domaines de mail multiples et virtuels, le tout sur une seule et même installation, sans passer par l’usine à gaz qu’est MySql (enfin, tant que vous n’avez pas des milliers d’utilisateurs) Dans postfix * main.cf, la section qui autorise les domaines […]