Author Topic: 0.5 installation problem - DSN (write): NOT OK(MDB2 Error: connect failed)  (Read 5011 times)

Offline ss78

  • Newbie
  • *
  • Posts: 2
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)

Code: [Select]

$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)

Offline Julius Caesar

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 498
    • http://www.de-keizer.net/
0.5 installation problem - DSN (write): NOT OK(MDB2 Error: connect failed)
« Reply #1 on: February 14, 2011, 10:29:35 AM »
Does your password contains a special character like i.e. a @ or a ' ?
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

Offline ss78

  • Newbie
  • *
  • Posts: 2
it was SELinux
« Reply #2 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..

--