| 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.
|  | 
11-03-2008, 04:32 PM
| | | Connect to Zimbra's MySQL via ODBC? Hello!
I was wondering if it was possible to connect to Zimbra's database using ODBC?
- jesse | 
11-04-2008, 02:05 AM
| | | 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.
__________________ | 
11-05-2008, 10:04 AM
| | | 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 | 
11-05-2008, 01:16 PM
| | | 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 | 
11-05-2008, 11:26 PM
| | Zimbra Consultant & Moderator | |
Posts: 20,312
| | Quote:
Originally Posted by jreinhart 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
| 
11-06-2008, 02:54 PM
| | | 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 | 
04-13-2009, 03:54 AM
| | | Quote:
Originally Posted by jreinhart 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 | 
04-13-2009, 05:04 AM
| | | 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. | 
04-13-2009, 08:28 AM
| | | 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 | 
04-13-2009, 08:58 PM
| | | well jesse thanks for the info..... | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |