Roundcube Community Forum

Release Support => Pending Issues => Topic started by: killinghall on September 16, 2013, 09:13:38 PM

Title: [0.94] - Cannot connect to DB after upgrade
Post by: killinghall on September 16, 2013, 09:13:38 PM
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?
Title: Re: [0.94] - Cannot connect to DB after upgrade
Post by: killinghall on September 16, 2013, 11:19:11 PM
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?
Title: Re: [0.94] - Cannot connect to DB after upgrade
Post by: SKaero on September 17, 2013, 04:43:27 AM
3306 is the default for MySQL so if no port is specified 3306 is the port that it will use.