I am encountering some issues trying to get this to work. Here is the output from the log:
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:68 Use of undefined constant ROUNDCUBE_AUTH_DB_HOST - assumed 'ROUNDCUBE_AUTH_DB_HOST' (8)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:68 Use of undefined constant ROUNDCUBE_AUTH_DB_USER - assumed 'ROUNDCUBE_AUTH_DB_USER' (8)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:68 Use of undefined constant ROUNDCUBE_AUTH_DB_PASS - assumed 'ROUNDCUBE_AUTH_DB_PASS' (8)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:68 mysql_connect(): Unknown MySQL server host 'ROUNDCUBE_AUTH_DB_HOST' (1) (2)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:69 Use of undefined constant ROUNDCUBE_AUTH_DB_NAME - assumed 'ROUNDCUBE_AUTH_DB_NAME' (8)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:69 mysql_select_db() expects parameter 2 to be resource, boolean given (2)
18/03/2015 13:48:54 [ 2932] [ERROR] [myuser@mydomain.com] Unable to open auth database
Here is the part I modified in the config.php
define('ROUNDCUBE_CONTACT_DB_NAME','roundcube'); //my db name is "roundcube"
define('ROUNDCUBE_CONTACT_DB_USER','roundcube'); // the db user name is also "roundcube"
define('ROUNDCUBE_CONTACT_DB_PASS','mysupersecretpasswordformysql');
define('ROUNDCUBE_CONTACT_DB_HOST','127.0.0.1'); // I have also tried localhost to no avail
define('BACKEND_PROVIDER', 'BackendRoundcubeContacts');
Also, to show that I am in fact using mysql with roundcube as the DB and username:
[root@myserver.local z-push]# mysql -u roundcube -p roundcube
Enter password:
Your MySQL connection id is 280
Server version: 5.5.42 MySQL Community Server (GPL) by Remi
mysql> use roundcube;
Database changed
mysql> show tables;
+---------------------+
| Tables_in_roundcube |
+---------------------+
| cache |
...
I am encountering some issues trying to get this to work. Here is the output from the log:
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:68 Use of undefined constant ROUNDCUBE_AUTH_DB_HOST - assumed 'ROUNDCUBE_AUTH_DB_HOST' (8)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:68 Use of undefined constant ROUNDCUBE_AUTH_DB_USER - assumed 'ROUNDCUBE_AUTH_DB_USER' (8)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:68 Use of undefined constant ROUNDCUBE_AUTH_DB_PASS - assumed 'ROUNDCUBE_AUTH_DB_PASS' (8)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:68 mysql_connect(): Unknown MySQL server host 'ROUNDCUBE_AUTH_DB_HOST' (1) (2)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:69 Use of undefined constant ROUNDCUBE_AUTH_DB_NAME - assumed 'ROUNDCUBE_AUTH_DB_NAME' (8)
18/03/2015 13:48:54 [ 2932] [WARN] [myuser@mydomain.com] /usr/share/z-push/backend/roundcubecontacts.php:69 mysql_select_db() expects parameter 2 to be resource, boolean given (2)
18/03/2015 13:48:54 [ 2932] [ERROR] [myuser@mydomain.com] Unable to open auth database
Here is the part I modified in the config.php
define('ROUNDCUBE_CONTACT_DB_NAME','roundcube'); //my db name is "roundcube"
define('ROUNDCUBE_CONTACT_DB_USER','roundcube'); // the db user name is also "roundcube"
define('ROUNDCUBE_CONTACT_DB_PASS','mysupersecretpasswordformysql');
define('ROUNDCUBE_CONTACT_DB_HOST','127.0.0.1'); // I have also tried localhost to no avail
define('BACKEND_PROVIDER', 'BackendRoundcubeContacts');
Also, to show that I am in fact using mysql with roundcube as the DB and username:
[root@myserver.local z-push]# mysql -u roundcube -p roundcube
Enter password:
Your MySQL connection id is 280
Server version: 5.5.42 MySQL Community Server (GPL) by Remi
mysql> use roundcube;
Database changed
mysql> show tables;
+---------------------+
| Tables_in_roundcube |
+---------------------+
| cache |
...
Thanks for the hard work on this!