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

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 06-15-2006, 03:45 AM
Member
 
Posts: 12
Default Zimbra database and phpMyAdmin

I've succesfully installed Zimbra and it works great, but I would like to have a propper look at details in the zimbra database using phpMyAdmin.
Could anyone here please provide advice on how to do this?
Reply With Quote
  #2 (permalink)  
Old 06-15-2006, 04:31 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Welcome to the forums.

Have a search through the forums for details on how to find the password for the MySQL database - that's all you need to get to them.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-19-2006, 05:23 AM
Member
 
Posts: 12
Default

Hi Bill

Thanks for your reply. Let me explain my situation a bit better. I currently have Zimbra runing on SUSE 9.3 and phpMyAdmin on a Windows XP machine. Both of these machines are connected to our business network. I have full/root access to both these machines. I have configured Samba on the Linux machine and can access it from any computer on our network (to view files and access the zimbra application).
My knowledge of Linux and Tomcat is quite poor (Started learning the hard way a week or so ago), but I am reasonably experienced in apache, mysql and php.
I have tried to connect to the Zimbra mySQL database from my Windows machine using the password/username specified in the opt\zimbra\conf\localconfig.xml file without much success - I get 'server not responding' when I use the ip address of the zimbra box as host name and 'Access denied for user: 'root@dsl-142-242-12.telkomadsl.co.za' (Using password: YES) ' when I use 'http:\\zimbra' (Which is the URL I use to access Zimbra from the windows machine).
I have also tried running phpMyAdmin from the Tomcat Webapps dir and the httpd-2.0.54\htdocs dir, again without much success.

I cant access mysql from the terminal either (ERROR 2002 (HY000): Cant connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(2))

Is there any way I can make this work? If not, is there any other way I can view the database structure/contents () ?

Thanx for the time and effort spent on this post. I really do appreciate your help

Leslie
Reply With Quote
  #4 (permalink)  
Old 06-19-2006, 06:22 AM
Moderator
 
Posts: 2,207
Default

I'm not sure the mysql daemon running on the Zimbra server listens to network connections. Even if it does, I doubt the mysql root users is allowed to log in from the network.

Have you tried command line mysql access from the Zimbra server ?
Reply With Quote
  #5 (permalink)  
Old 06-19-2006, 06:31 AM
Member
 
Posts: 12
Default

I have tried to connect from the command line and get the following error: ERROR 2002 (HY000): Cant connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(2)).
I think it might be trying to connect me to the default mySQL service which installs with Linux, because the path specified in the 'my.cnf' file in '/opt/zimbra/conf' differs from the path above.
Reply With Quote
  #6 (permalink)  
Old 06-19-2006, 07:02 AM
Member
 
Posts: 12
Talking

I forgot to invoke the zimbra control ('su - zimbra') before calling mysql(stupid me).
I can now succesfully access the database via the command prompt! Would still be nice if I could somehow make work with phpMyAdmin...
Thanx guys!

Leslie
Reply With Quote
  #7 (permalink)  
Old 07-28-2008, 07:37 AM
Intermediate Member
 
Posts: 17
Default Have you tried SQLyog?

I have been using SQLyog to connect and view the database tables.
'zmlocalconfig -s' can get you all the information you need to connect (port, password,...)
I first run PuTTY and create a tunnel:
Under Connection-->SSH-->Tunnels select 'Local ports accept connections from other hosts'. Set your source port to whatever local port you want to use. I use 3308. Then set your destination to 127.0.0.1:7306 (assuming that the value for mysql_port when you run 'zmlocalconfig -s | grep mysql_port' is 7306).
Of course, your Session Host Name points to your Zimbra server. Your Connection-->Data Auto-login username should be set to a username that has rights to connect to your Zimbra server. The 'root' user will work, but for security reasons, it is probably better to use something different.

Once you open your tunnel, you can run SQLyog to connect.
Set your MySQL host address to 127.0.0.1.
Your port will be your local port you set above (3308). You can get your username and password from the zmlocalconfig output.
Reply With Quote
  #8 (permalink)  
Old 06-24-2009, 12:17 AM
Member
 
Posts: 10
Default

To connect Zimbra database in PhpMyAdmin you should change php5 settings. Set mysql.default_socket =/opt/zimbra/db/mysql.sock in php.ini
mysql.default_host = localhost:7306
I think thats all. If you'll have another questions write to my e-mail. mr(dot)muldashev(at)gmail(dot)com
Reply With Quote
  #9 (permalink)  
Old 12-10-2009, 06:26 AM
Intermediate Member
 
Posts: 17
Default

i'm still having this problem:
#1045 - Access denied for user 'root'@'localhost'
Reply With Quote
  #10 (permalink)  
Old 12-10-2009, 06:42 AM
Member
 
Posts: 10
Default

Could you show log?
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.