Jump to content
  • 0

Install could not connect to the database


Zycon

Question

Does WHMCS have any error logs anywhere for problems during installation?

 

I'm getting "Could not connect to the database - check the database connection details you entered and go back and correct them if necessary"

 

However I found the following scriptlet on this forum which confirms my login details are correct: "Connected to MySQL. Connected to Database"

 

<?php 
mysql_connect("localhost", "mysqladminUsername", "mysqladminPassword") or die(mysql_error()); 
echo "Connected to MySQL<br />"; 
mysql_select_db("mysqlDatabase") or die(mysql_error()); 
echo "Connected to Database"; 
?> 

 

Anything else I can try?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

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

Guest
Answer this question...

×   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