Closed Thread
Results 1 to 4 of 4

Thread: PHP Access denied

  1. #1
    joe95443-joeos83 is offline x10Hosting Member joe95443-joeos83 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    3

    PHP Access denied

    For a lot of the PHP commands I do, I get an access denied error. EG: "Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'Tester'@'web3.vital.x10hosting.com' (using password: YES) in /home/joe95443/public_html/PHP-1.php on line 6
    Unable to select database" How do I allow full PHP access? If I can't have full access how do I use PHP and the Mysql database?

  2. #2
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: PHP Access denied

    MySQL usernames are prefixed with your cpanel username, same with the databases. So "tester" won't work because it doesn't have your cpanel username in front of it.

    Check the MySQL Databases section in cpanel; it should show the database name and the user assigned to it so you know which one to use. If there's no database/user shown, use the database wizard to make one


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  3. #3
    joe95443-joeos83 is offline x10Hosting Member joe95443-joeos83 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    3

    Re: PHP Access denied

    Sorry, the original code I had used the correct details and it gave the same error. That error message I included was from me testing something. I don't think its my code, and all the database 'stuff' is set up in cpanel. (ALSO: it's not just database things, it's MOST PHP.)
    Last edited by joe95443-joeos83; 02-26-2011 at 03:43 PM.

  4. #4
    joe95443-joeos83 is offline x10Hosting Member joe95443-joeos83 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    3

    Re: PHP Access denied

    Problem solved. My username is case sensitive and I didn't know that.

Closed Thread

Similar Threads

  1. Replies: 0
    Last Post: 06-04-2010, 05:43 AM
  2. no forum access -- dba acct has access denied
    By kronus in forum Free Hosting
    Replies: 2
    Last Post: 04-11-2010, 02:05 PM
  3. ftp access denied
    By matt12 in forum Free Hosting
    Replies: 10
    Last Post: 07-10-2008, 05:17 PM
  4. My SQL Access Denied
    By mcthon in forum Free Hosting
    Replies: 2
    Last Post: 09-04-2007, 05:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers