Jump to content

Database Connection Nightmare


Go to solution Solved by Barand,

Recommended Posts

Hi, I am currently trying to build an Artist's website, the artist wanted a CMS that was completely customized to the site (so no Wordpress, Joomla, Drupel, etc) - because of this I am having to create a CMS completely from scratch.

 

The problem I am having is with the database connection (hence the topic title), other sites that I have built with this same code work fine - however this particular site does not seem to want to play ball. It keeps giving me this error:

 

 

SQLSTATE[HY000] [1045] Access denied for user 'web113-janesart'@'10.0.44.113' (using password: YES)

 

I have tried obvious things such as spelling mistakes, wrong password/username/db name, nothing seems to get rid of this error.

 

Any help on what else this could be would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/291147-database-connection-nightmare/
Share on other sites

  • Solution

When you specify users for a MySql database you can also specify the domains from which they are allowed to access the server (or specify "%" as wildcard meaning anywhere).

 

It sounds as though that IP is not valid for that username. You need to change the user access credentials to allow that IP address, or get an admin to do it.

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.