I too am experiencing the same issue... i am not sure how to check to see if there is Data in the DB... since (i believe) there is multiple MySQL instances running (i could be wrong about this but if i am why have more than mysql source directory???)...
First the MySQL from $PATH(=/opt/zimbra/bin/)
[i'll use the code tags to make it a bit more readable in this posts]
Code:
secure:~ zimbra$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2522 to server version: 4.1.20-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+----------+
| Database |
+----------+
| mailbox1 |
| mailbox2 |
| mailbox3 |
| mailbox4 |
| mysql |
| test |
| zimbra |
+----------+
7 rows in set (0.32 sec)
mysql>
I did a brief search of any data in the DB's or Table's and i couldn't find any logging data
So i try the MySQL in the Logger Directory...
Code:
secure:~ zimbra$ ./logger/mysql/bin/mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
i might have to have different flags (-s -u -p) to get a socket connection going but i don't know those... maybe i can find it out while looking thru mysqladmin variables
Though while i was hunting around (and following phoenix's advice) i found these two errors:
Code:
secure:~ zimbra$ /opt/zimbra/libexec/zmlogprocess
DBI connect('database=zimbra_logger;mysql_read_default_file=/opt/zimbra/conf/my.logger.cnf;mysql_socket=/opt/zimbra/logger/db/mysql.sock','zimbra',...) failed: Access denied for user 'zimbra'@'localhost' (using password: YES) at /opt/zimbra/libexec/zmlogprocess line 63
DB: Can't connect to dbi:mysql:database=zimbra_logger;mysql_read_default_file=/opt/zimbra/conf/my.logger.cnf;mysql_socket=/opt/zimbra/logger/db/mysql.sock: Access denied for user 'zimbra'@'localhost' (using password: YES) and
Code:
secure:~ zimbra$ ./libexec/zmloggerinit
* Creating required directories
* Creating database in /opt/zimbra/logger/db/data
* Starting logger_mysql server
* Loading schema /opt/zimbra/db/loggerdb.sql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
* Setting random password for mysql root user in zimbra local config
* Setting random password for mysql zimbra user in zimbra local config
* Changing mysql root user password
/opt/zimbra/logger/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
* Changing mysql zimbra user password
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
**** PASSWORD CHANGE FAILED
But i'll need someone who knows more to confirm this is the problem... I know there are a few thread that explain how to change/reset the passwords for Zimbra's MySQL... Though i'll need to search for that.
Any advice from anybody would be greatly appreciated!!!
On a side note... i too am able to have documents(wiki) working but there are a few bugs with editing... but that is another issue for another topic.