christian-putzke / Roundcube-CardDAV

Roundcube CardDAV Plugin
http://www.graviox.de
GNU Affero General Public License v3.0
119 stars 28 forks source link

Unable to connect to the database after activate plugin #76

Open lompichunter opened 10 years ago

lompichunter commented 10 years ago

My roundcube MySQL-DB used the prefix 'rc_', so I changed the SQL/mysql.sql accordingly.

After activating the plugin the error is shown. " DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database! Please contact your server-administrator. "

After deactivating the plugin, the error is gone.

chkania commented 10 years ago

Same problem here: Roudcube 1.0.0 PostgreSQL 9.1

jchfk commented 10 years ago

Same problem here - did you find a solution?

Roundcube 1.0.0 MySQL 5.5.31

onny commented 10 years ago

Same error here

RoundCube 1.0.0 MySQL 5.5.31

a-sassermann commented 10 years ago

Using RoundCube 1.0.1 works as expected.

Check if you're using $config['dbprefix'] = 'rc'; instead of $rcmail_config['dbtable.....'] these won't work.

tgjb commented 10 years ago

Also affected with this problem

@a-sassermann using "$config['dbprefix'] = 'rc'; instead of $rcmail_config['dbtable.....']" into the "config.inc.php" file doesn't help.

Regards.

a-sassermann commented 9 years ago

@tgjb, @djnitrow I think I got mislead by the db_prefix introduction. The database connection is handled by rcoundcube mail before table prefixes come into action. As the configurations of plugins are merged into the rc base configuration, there should'nt be any extra connection settings. These would overwrite the main config. From the DAV plugin code I cannot find that it would affect the db connection.

plutocrat commented 5 years ago

My install was using no table prefix, and I got this error on first login after enabling the carddav plugin. I copied all the roundcube tables to eg rc_contacts, rc_cache etc, and then added $config['dbprefix'] = 'rc'; to my main roundcube config file. After that, the plugin worked, and created the tables it needed (with the rc_ prefix set). So it seems it requires a prefix other than the default '' no prefix.