[Dovecot] dovecot: auth(default): Fatal: Unknown database driver 'mysql'
I just tried upgrading from 1.1.rc6 to v1.2.11, and am getting the following error: dovecot: auth(default): Fatal: Unknown database driver 'mysql'. If I change the respective line in dovecot-sql.conf from driver = mysql to driver = pgsql the error message changes accordingly: dovecot: auth(default): Fatal: Unknown database driver 'pgsql'.
I quit using 1.1.rc6 because it started choking on my Debian system, so I'm back to using the stable Debian version - 1:1.0.15-2.3+lenny1. Where are the drivers kept when I do a default build, and where in the configuration file does it tell dovecot to look for the drivers? Other suggestions on a fix?
Glen
On 03/29/2010 05:31 AM Glen Lee Edwards wrote:
I just tried upgrading from 1.1.rc6 to v1.2.11, and am getting the following error: dovecot: auth(default): Fatal: Unknown database driver 'mysql'. If I change the respective line in dovecot-sql.conf from driver = mysql to driver = pgsql the error message changes accordingly: dovecot: auth(default): Fatal: Unknown database driver 'pgsql'.
I quit using 1.1.rc6 because it started choking on my Debian system, so I'm back to using the stable Debian version - 1:1.0.15-2.3+lenny1. Where are the drivers kept when I do a default build, and where in the configuration file does it tell dovecot to look for the drivers? Other suggestions on a fix?
Glen
Run: /path/to/v1.2.11/dovecot --build-options | tail -n4 Shows which SQL drivers are available, if any. And if userdb/passdb can use sql dbs.
Regards, Pascal
The trapper recommends today: f007ba11.1008804@localdomain.org
Pascal Volk wrote:
On 03/29/2010 05:31 AM Glen Lee Edwards wrote:
I just tried upgrading from 1.1.rc6 to v1.2.11, and am getting the following error: dovecot: auth(default): Fatal: Unknown database driver 'mysql'. If I change the respective line in dovecot-sql.conf from driver = mysql to driver = pgsql the error message changes accordingly: dovecot: auth(default): Fatal: Unknown database driver 'pgsql'.
I quit using 1.1.rc6 because it started choking on my Debian system, so I'm back to using the stable Debian version - 1:1.0.15-2.3+lenny1. Where are the drivers kept when I do a default build, and where in the configuration file does it tell dovecot to look for the drivers? Other suggestions on a fix?
Glen
Run: /path/to/v1.2.11/dovecot --build-options | tail -n4 Shows which SQL drivers are available, if any. And if userdb/passdb can use sql dbs.
Regards, Pascal
$ /usr/local/sbin/dovecot --build-options | tail -n4 SQL drivers: Passdb: checkpassword pam passwd passwd-file shadow sql Userdb: nss passwd passwd-file prefetch sql static
On 03/29/2010 04:29 PM Glen Lee Edwards wrote:
$ /usr/local/sbin/dovecot --build-options | tail -n4 SQL drivers: Passdb: checkpassword pam passwd passwd-file shadow sql Userdb: nss passwd passwd-file prefetch sql static
You have built Dovecot w/o SQL drivers. Use one or more of the following configure options: --with-pgsql Build with PostgreSQL driver support --with-mysql Build with MySQL driver support --with-sqlite Build with SQLite3 driver support
Regards, Pascal
The trapper recommends today: f007ba11.1008816@localdomain.org
Pascal Volk wrote:
On 03/29/2010 04:29 PM Glen Lee Edwards wrote:
$ /usr/local/sbin/dovecot --build-options | tail -n4 SQL drivers: Passdb: checkpassword pam passwd passwd-file shadow sql Userdb: nss passwd passwd-file prefetch sql static
You have built Dovecot w/o SQL drivers. Use one or more of the following configure options: --with-pgsql Build with PostgreSQL driver support --with-mysql Build with MySQL driver support --with-sqlite Build with SQLite3 driver support
Regards, Pascal
??? :-[
Thanks
On 03/29/2010 04:53 PM Glen Lee Edwards wrote:
Pascal Volk wrote:
On 03/29/2010 04:29 PM Glen Lee Edwards wrote:
$ /usr/local/sbin/dovecot --build-options | tail -n4 SQL drivers: Passdb: checkpassword pam passwd passwd-file shadow sql Userdb: nss passwd passwd-file prefetch sql static
You have built Dovecot w/o SQL drivers. Use one or more of the following configure options: --with-pgsql Build with PostgreSQL driver support --with-mysql Build with MySQL driver support --with-sqlite Build with SQLite3 driver support
Regards, Pascal
??? :-[
You wrote, you've tried to upgrade from 1.1.rc6 to v1.2.11. How did you try it? Building Dovecot from source or installing from prebuilt binaries? When you build Dovecot from its source code, the first step is to run the configure script, in order the enable/disable the stuff you want. (see also: http://wiki.dovecot.org/CompilingSource)
Regards, Pascal
The trapper recommends today: deadbeef.1008817@localdomain.org
Pascal Volk wrote:
On 03/29/2010 04:53 PM Glen Lee Edwards wrote:
Pascal Volk wrote:
On 03/29/2010 04:29 PM Glen Lee Edwards wrote:
$ /usr/local/sbin/dovecot --build-options | tail -n4 SQL drivers: Passdb: checkpassword pam passwd passwd-file shadow sql Userdb: nss passwd passwd-file prefetch sql static
You have built Dovecot w/o SQL drivers. Use one or more of the following configure options: --with-pgsql Build with PostgreSQL driver support --with-mysql Build with MySQL driver support --with-sqlite Build with SQLite3 driver support
Regards, Pascal
??? :-[
You wrote, you've tried to upgrade from 1.1.rc6 to v1.2.11. How did you try it? Building Dovecot from source or installing from prebuilt binaries? When you build Dovecot from its source code, the first step is to run the configure script, in order the enable/disable the stuff you want. (see also: http://wiki.dovecot.org/CompilingSource)
Regards, Pascal
I downloaded the source from dovecot.org. I'm a Linux hobbyist - I work full time in an unrelated field. After putting in a 12 hour day at work, I came home and worked on the computer for another 8+ hours on other things before realizing that I needed to upgrade dovecot. By then I was tired enough that I just missed the obvious. Most of what I install I use the provided deb packages. A few programs I prefer to try to stay more current, so I usually build them from the source code provided by the program's home page.
Thanks for propping up my missing brain cells. 1.2.11 is up and running.
Also, I forgot that not everyone sees the emails the way I send them. The ":-[" in my last letter showed as an embarrassed smiley here. The "??? :-[" was supposed to convey initial confusion followed by embarrassment as I realized just how simple and obvious the fix was.
Glen
Glen Lee Edwards glen@holiness.ch writes:
Pascal Volk wrote:
On 03/29/2010 04:29 PM Glen Lee Edwards wrote:
$ /usr/local/sbin/dovecot --build-options | tail -n4 SQL drivers: Passdb: checkpassword pam passwd passwd-file shadow sql Userdb: nss passwd passwd-file prefetch sql static
You have built Dovecot w/o SQL drivers. Use one or more of the following configure options: --with-pgsql Build with PostgreSQL driver support --with-mysql Build with MySQL driver support --with-sqlite Build with SQLite3 driver support
Regards, Pascal
??? :-[
Example:
./configure --with-sql --with-pgsql
will configure the build system to create a program which has the PostgreSQL driver built in.
participants (3)
-
Glen Lee Edwards
-
Pascal Volk
-
Rainer Weikusat