Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-09-2009, 04:00 AM
Starter Member
 
Posts: 1
Default back-sql - SQLConnect() failed

Hi all,

I'm trying to use ldap + mysql , but i've got some errors ...

backsql_open_db_handle(): SQLConnect() to database "openldap" failed

backsql_db_open(): connection failed, exiting
backend_startup_one: bi_db_open failed! (1)


My slapd.conf

database sql
suffix "dc=visky,dc=vn"
rootdn "cn=admin,dc=visky,dc=vn"
rootpw 123456
dbname openldap
dbuser root
dbpasswd 123
subtree_cond "ldap_entries.dn LIKE CONCAT('%',?)"
insentry_query "INSERT INTO ldap_entries (dn,oc_map_id,parent,keyval)
VALUES (?,?,?,?)"

/etc/odbc.ini

MySQL = MySQL connection

[MySQL]
DSN = ldap
Description = MySQL connection
Driver = MySQL
Database = ldap
Server = localhost
Port = 3306
Socket =
User = root
Password = 123

/etc/odbcinst.ini

Description = MySQL driver
Driver = /usr/lib/odbc/libmyodbc.so
Setup = /usr/lib/odbc/libodbcmyS.so
CPTimeout =
CPReuse =
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.