mysql

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 »

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 …

Using ODBC in the core – FreeSWITCH Wiki Lire la suite »

With a Little Help from my Friend | How to recreate root account in MySQL

Today I was trying to log in to mysql database administration on one of my hosting machines and as I was getting ‘permission denied for user rott@localhost’ I tried to fix the root account and reset its password. But I wasn’t successful and later on I realized, that the root account was deleted from the …

With a Little Help from my Friend | How to recreate root account in MySQL Lire la suite »

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 …

Suivre en temps réel l’activité de son serveur GNU/Linux | L’admin sous GNU / Linux – Blog Libre Lire la suite »

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 …

Postfix, Dovecot, et des utilisateurs virtuels sans Mysql – Effraie@blog Lire la suite »

Retour en haut