Author Topic: [0.94] - Cannot connect to DB after upgrade  (Read 3952 times)

Offline killinghall

  • Jr. Member
  • **
  • Posts: 12
[0.94] - Cannot connect to DB after upgrade
« 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?
« Last Edit: September 16, 2013, 09:36:03 PM by killinghall »

Offline killinghall

  • Jr. Member
  • **
  • Posts: 12
Re: [0.94] - Cannot connect to DB after upgrade
« Reply #1 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?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: [0.94] - Cannot connect to DB after upgrade
« Reply #2 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.