Jump to content

Installation Problem - Database won't connect


jmanphxaz

Recommended Posts

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...

 

<?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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated