White_Lily Posted September 18, 2014 Share Posted September 18, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/291147-database-connection-nightmare/ Share on other sites More sharing options...
Solution Barand Posted September 18, 2014 Solution Share Posted September 18, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/291147-database-connection-nightmare/#findComment-1491496 Share on other sites More sharing options...
White_Lily Posted September 18, 2014 Author Share Posted September 18, 2014 Thank you Barand, it was the credentials for the IP - the client gave us the wrong username and password. Quote Link to comment https://forums.phpfreaks.com/topic/291147-database-connection-nightmare/#findComment-1491499 Share on other sites More sharing options...
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.