Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 64308 invoked from network); 29 Oct 2007 21:56:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2007 21:56:45 -0000 Received: (qmail 74190 invoked by uid 500); 29 Oct 2007 21:56:22 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 74171 invoked by uid 500); 29 Oct 2007 21:56:22 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 74160 invoked by uid 99); 29 Oct 2007 21:56:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 14:56:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.138.240.12] (HELO mail.acerenting.com) (216.138.240.12) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 21:56:32 +0000 Received: from HP72472929110 (CPE0011d8edaa7f-CM000f212f8d37.cpe.net.cable.rogers.com [70.25.171.82]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.acerenting.com (Postfix) with ESMTP id AEBD01580030 for ; Mon, 29 Oct 2007 17:57:42 -0400 (EDT) Message-ID: <028b01c81a77$250dc930$66d482d8@HP72472929110> Reply-To: "Danie Qian" From: "Danie Qian" To: References: <4726459A.2020100@khine.net> Date: Mon, 29 Oct 2007 17:58:32 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="gb2312"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_auth_mysql for apache 2.2.6 - error on restart: DBD: No driver for mysql ----- Original Message ----- From: "Norman Khine" To: Sent: Monday, October 29, 2007 4:42 PM Subject: [users@httpd] mod_auth_mysql for apache 2.2.6 - error on restart: DBD: No driver for mysql > Hello, > Following an upgrade to 2.2.6 from 2.0 I find myself that I can no > longer authenticate against MySQL database. > > Following some docs and forums, I have done this so far in my conf file: > > ######### > > .... > > #Database Management > > #Use the MySQL driver > DBDriver mysql > # > ##Connection string: database name and login credentials > DBDParams "dbname=authdbm user=user@domain password=xxx" > # > ##Parameters for Connection Pool Management > DBDMin 1 > DBDKeep 2 > DBDMax 10 > DBDExptime 60 > # > #Authentication Section > > # > #mod_auth configuration for authn_dbd > AuthType Basic > AuthName "My Server" > AuthBasicProvider dbd > > #authz configuration > Require valid-user > > #SQL query to verify a user > #(note: DBD drivers recognise both stdio-like %s and native syntax) > AuthDBDUserPWQuery "select password from users where username = %s" > > > ######### > > Then when I load the protected page I get an error when I try to restart > the server. > > DBD: No driver for mysql > > I have emerged mod_auth_mysql-3.0.0-r2 on gentoo > > > What am I doing wrong? > You need to compile the driver at the bottom of this page into the apr-util library to use mod_dbd and various authentication modules: http://apache.webthing.com/database/ mod_auth_mysql-3.0.0-r2 is something totally differently from what is described in apache documentation. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org