Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: ss78 on February 14, 2011, 10:19:37 AM

Title: 0.5 installation problem - DSN (write): NOT OK(MDB2 Error: connect failed)
Post by: ss78 on February 14, 2011, 10:19:37 AM
Hi,
I am installing RoundCube (0.5.1) on fedora/mysql

I have created db (roundcubemail) and user (rcmailuser) and assigned all permissions too, however I get this problem in the installer page

DSN (write):  NOT OK(MDB2 Error: connect failed)


$rcmail_config['db_dsnw'] = 'mysql://rcmailuser:myusrpwd@localhost/roundcubemail';


I can connect to mysql with this user id and password, but installer page keeps showing same thing.

I have php-mysql and pear etc.. I've restarted mysqld 4-5 times and httpd 20 times but no luck.. (When mdb2 driver and php-mysql were not installed, the installer was showing a different error - I think it was MDB2 Error: not found, but now it's showing connect failed)

I tried with 2 different user ids (one having permission on localhost other on anywhere (%), but same error. I also tried replacing 'localhost' in db.inc.php with 127.0.0.1 - still same error..

Plz help
(Permission screenshot attached)
Title: 0.5 installation problem - DSN (write): NOT OK(MDB2 Error: connect failed)
Post by: Julius Caesar on February 14, 2011, 10:29:35 AM
Does your password contains a special character like i.e. a @ or a ' ?
Title: it was SELinux
Post by: ss78 on February 14, 2011, 04:33:57 PM
Sorry - my bad..
MySql data dir was in a non-standard place and SELinux was stopping access from the httpd.
Made it permissive mode temporarily and it is working now..

--