Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

Installation Problem - Database won't connect

$
0
0
I just bought a license for WHMCS and am trying to install it on the Windows Server 2008 system with a Plesk control panel, on one of GoDaddy's Windows VPS plan. I managed to get past an earlier issue where the IonCube loaders were out of date. Managed to get them updated and run the installer, but now i'm running into this.

I start the install process, all the system requirement checks and permissions checks come back as "passed". I get to step 3, paste in my license and the database connection details. But when I click continue I get...

Could not connect to the database!

Please check the database connection details you provided and ensure the mysql user has access to the given database name.
I have checked the connection info and made sure the mysql user has access to the database. I have even verified this by uploading a quick PHP script the root of one of the websites hosted there...

Code:

<?php
$link = mysql_connect("localhost", "username", "password");

if(!$link)
    die("Error: ".mysql_error());

$db_selected = mysql_select_db("databasename", $link);

if(!$db_selected)
    die("Error: ".mysql_error());
?>

... (with the correct username/password/databasename info) and this returns no error. I've also used MySQL Workbench on my local machine to connect to the server using this username/password combo and successfully connected. I don't know what could be wrong on the WHMCS side of things that it doesn't connect.

Any ideas?

-Jon

Viewing all articles
Browse latest Browse all 13458

Trending Articles