Roundcube Community Forum

 

[0.94] - Cannot connect to DB after upgrade

Started by killinghall, September 16, 2013, 09:13:38 PM

Previous topic - Next topic

killinghall

Hello all

I've upgraded PHP to 5.3.8 and Roundcube to 0.94 and I'm getting the following error on page 3 of the installer screen:

Warning: PDO::__construct(): [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://localhost:3306) in C:\Inetpub\wwwroot\roundcube\program\lib\Roundcube\rcube_db.php on line 144 DSN (write):  NOT OK(SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
)

MySQL has used port 3307 all along and I have specified the same in php.ini. Is PDO trying to connect to 3306 instead?

killinghall

Well it appears i had to manually specify 3307 as the db port in db.inc.php. Netstat showed only 3307 was being listened to, and I'm not sure why the installer insisted on 3306?

SKaero

3306 is the default for MySQL so if no port is specified 3306 is the port that it will use.