Connexion à mysql

2004-08-31 Par sujet Vincent BRIET

Bonjour,

j'ai un problème de connexion à un serveur mysql, le serveur fonctionne 
bien (à première vue) :


mysqladmin --socket=/var/run/mysqld/mysqld.sock version -u user 
--password=password

mysqladmin  Ver 8.23 Distrib 3.23.49, for pc-linux-gnu on i686
Copyright (C) 2000 MySQL AB  MySQL Finland AB  TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version  3.23.49-log
Protocol version10
Connection  Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 76 days 23 hours 58 min 21 sec

Threads: 1  Questions: 6950285  Slow queries: 0  Opens: 1714  Flush 
tables: 1  Open tables: 60 Queries per second avg: 1.045


par contre lorsque postfix-mysql essaye de se connecter avec le même 
user/password cela ne fonctionne pas et me renvois :


postfix/trivial-rewrite[14353]: warning: connect to mysql server 
localhost: Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (2)


Quelqu'un aurait une idée d'ou cela pourrait venir ?

Vincent.



psotfix + mysql

2004-08-19 Par sujet Vincent BRIET

Bonjour,

J'ai installé postfix-mysql sur une débian woody (postfix 1.1)

Il ne trouve pas les comptes mails car il les recherche avec relay:local 
au lieu de relay:mysql. Lorsque que je fais :


postmap -q [EMAIL PROTECTED] 
mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf


il renvoi :

domaine.com/vincent/

Donc ça a l'air de fonctionner, quelqu'un sait comment je peux switcher 
la rechercher des comptes de relay=local à relay=mysql ?


--
Vincent.