2 Replies - 3389 Views - Last Post: 29 October 2013 - 08:39 AM

#1 velaphi  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 55
  • Joined: 20-July 08

mysql and php connection error

Posted 27 October 2013 - 06:11 AM

i am trying to connect my website with MySql database and i'm geeting this error message:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a9121170_714940'@'localhost' (using password: YES) in /home/a9121170/public_html/functions.php on line 102

Is This A Good Question/Topic? 0
  • +

Replies To: mysql and php connection error

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3719
  • View blog
  • Posts: 5,990
  • Joined: 08-June 10

Re: mysql and php connection error

Posted 27 October 2013 - 06:22 AM

OK. What is it, exactly, that you are having trouble with here?

The error message is crystal clear. That user does not have permission to access the database. You either have to switch to a user that does have permission, or give this user permission.

Without knowing more about your setup, we can't really advise you any further. Explain your situation in more detail if you want more detailed help.
Was This Post Helpful? 1
  • +
  • -

#3 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5313
  • View blog
  • Posts: 27,211
  • Joined: 10-May 07

Re: mysql and php connection error

Posted 29 October 2013 - 08:39 AM

Has user 'a9121170_714940'@'localhost' had access before? If not, was user 'a9121170_714940'@'localhost' created correctly? If so were permissions granted to user 'a9121170_714940'@'localhost'?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1