Jump to content

Unable to connect to database


j0719

Recommended Posts

I have tried and tried and tried but I get to step four on the installation process and I get this error message:

 

 

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 just created the database and all the details are correct.

 

The info in the fields are:

 

License Key: XXXXXX

 

[TABLE]

[TR]

[TD]Database Host: localhost

 

Database Username: server_username

 

Database Password:xxxxxxx

 

Database Name: server_databasename

 

Still it will not work. I am getting to the point where I am just fed up with trying. Can anyone help?

 

I have searched the threads but can't seem to find a clear answer.[/TD]

[TD][/TD]

[/TR]

[/TABLE]

Link to comment
Share on other sites

  • 10 months later...

Gents,

I have the same problem,

The user has all privileges and I can access to the database from ssh.

But cannot install WHMCS.

 

Oops! There's a problem

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.

 

What do you think?

 

Thanks,

Link to comment
Share on other sites

Have you tried using the ROOT login to see if that works ? if it does then it is a permissions issue.

Make sure you have given the user explicit permission to connect from the server where whmcs is installed (localhost if it is same server). I find is easier to allow connections from % (anywhere) and then lock down remote access in the firewall instead.

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