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

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 11-03-2008, 04:32 PM
Senior Member
 
Posts: 51
Default Connect to Zimbra's MySQL via ODBC?

Hello!

I was wondering if it was possible to connect to Zimbra's database using ODBC?

- jesse
Reply With Quote
  #2 (permalink)  
Old 11-04-2008, 02:05 AM
Moderator
 
Posts: 7,928
Default

As long as it is bound to a IP address, outside of 127.0.0.1, then there should be no reason why you cannot connect it you have the user name and password.
__________________
Reply With Quote
  #3 (permalink)  
Old 11-05-2008, 10:04 AM
Senior Member
 
Posts: 51
Default

Hi all.

I was hoping for some guidance. I'm trying to access the MySQL database on my Zimbra server using an ODBC connection from a Windows XP system. I got the necessary information such as username and password and database name, but it's not letting me connect.

I fear I might be doing something on the higher level, such as needing samba running or something.

Has anyone set up an ODBC connection in this manner? If so, can you post your suggestions?

Much appreciated. I'll post back here as I discover it.

- Jesse
Reply With Quote
  #4 (permalink)  
Old 11-05-2008, 01:16 PM
Senior Member
 
Posts: 51
Default

I seem to be running into a snag. The problem seems to have something to do with being unable to view/run MySQL commands unless you're in the Zimbra user account.

For example, I cannot log in to the MySQL shell unless I'm running it as the Zimbra user (not even root works).

su zimbra
mysql -p

Then I can log in.

So only the Zimbra user can view the database and run database commands. In the Synaptic package manager (I'm using Ubuntu 8.04) I noticed that MySQL server was not installed so I installed it - and it promptly broke the Zimbra installation, although I could then log in and view the databases as root.

I'm currently reinstalling the system - it's a test system for this purpose alone.

Seems to be that the system doesn't recognize the database since it's not the standard installation - so the system looks to where MySQL is supposed to be and finds nothing.

Does anyone know how I can tell the system where to look for the database files and socket files and such?

Thanks!

- Jesse
Reply With Quote
  #5 (permalink)  
Old 11-05-2008, 11:26 PM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by jreinhart View Post
I noticed that MySQL server was not installed so I installed it - and it promptly broke the Zimbra installation, although I could then log in and view the databases as root.
It's highly improbable that installing the o/s MySQL did that, Zimbra uses non-standard ports for MySQL. Many users run a separate instance of MySQL on their Zimbra server without problems.
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 11-06-2008, 02:54 PM
Senior Member
 
Posts: 51
Default

OK. I'm not really concerned about running multiple databases on the Zimbra box, only with accessing the data in Zimbra's MySQL instance.

Do you have any advice or insight? I can't believe this hasn't been done or can't be done, but I lack the know how on it.

Thanks very much for your time and input.

- Jesse
Reply With Quote
  #7 (permalink)  
Old 04-13-2009, 03:54 AM
Senior Member
 
Posts: 59
Wink

Quote:
Originally Posted by jreinhart View Post
Hi all.

I was hoping for some guidance. I'm trying to access the MySQL database on my Zimbra server using an ODBC connection from a Windows XP system. I got the necessary information such as username and password and database name, but it's not letting me connect.

I fear I might be doing something on the higher level, such as needing samba running or something.

Has anyone set up an ODBC connection in this manner? If so, can you post your suggestions?

Much appreciated. I'll post back here as I discover it.

- Jesse
could you give me some info on which mysql user and password to use in the ODBC connection and also the database name info
Reply With Quote
  #8 (permalink)  
Old 04-13-2009, 05:04 AM
Senior Member
 
Posts: 66
Default

I didn't look but I am guessing mysql is setup to only listen to localhost and that is why you can't login from your XP box.
Reply With Quote
  #9 (permalink)  
Old 04-13-2009, 08:28 AM
Senior Member
 
Posts: 51
Default

I don't remember the actual command, but there's a ZM command you can run to get the connection info for your ODBC connection, including the username and password.

However, I still was unable to get a connection to the database to pull information out.

Sorry I can't be of better use!

- Jesse
Reply With Quote
  #10 (permalink)  
Old 04-13-2009, 08:58 PM
Senior Member
 
Posts: 59
Thumbs up

well jesse thanks for the info.....
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.