Jump to content
  • 0

getting an error when trying to install.


PILMAN

Question

I downloaded the trial version of WHMCS as I want to see how it is before I purchase it. I am getting an error for some reason about my MYSQL database. I actually recompiled my apache to install CURL before hand because I didn't have it.

 

When I try to do the install, I get the error

 

Could not connect to the database - check the database connection details you entered and go back and correct them if necessary

 

my MYSQL information is correct, I triple checked.

 

everything is CHMOD correctly as well.

 

Any ideas?

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0
Double check with your web host that the database connection information is correct. There is only 1 way that this error occurs and that is through incorrect database login details or the mysql server being down.

 

Hope this helps

 

I am the server administrator, there is nothing wrong with the database details. Also all other scripts using my MYSQL database work fine.

Link to comment
Share on other sites

  • 0

Copy of the information you have entered into the following script and test the output.

 

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

Link to comment
Share on other sites

  • 0
Copy of the information you have entered into the following script and test the output.

 

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

 

 

Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in /home/data/public_html/test.php on line 2

Client does not support authentication protocol requested by server; consider upgrading MySQL client

Link to comment
Share on other sites

  • 0
Problem is NOT with WHMCS.

 

That simple php code should connect to MySQL to verify it is working, and then connect to the database and verify the database exists and is accessible via the mysql username entered.

 

Check this out: MySql >= 4.1 Client does not support authentication protocol...

 

Yes it appears you are right, looks like when I recompiled Apache, a number of my scripts stopped working (not able to connect to MYSQL database). My PHPNUKE and Modernbill still work but some of my store scripts and Joombla no longer work...

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