This is a discussion on "access denied" within the PHP Forum section. This forum, and the thread "access denied are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
access denied
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
access denied
im just starting to get to grips with mysql using php.
i set up my first database not long ago, and i tried to connect to it using the following:
but it says when i try to view the file Warning: mysql_connect(): Access denied for user: 'tuggersc_gavtest@localhost' (Using password: YES) in /home/tuggersc/public_html/fantasy-league-test/mysql_test/test.php on line 11 I cannot connect to the database because: Access denied for user: 'tuggersc_gavtest@localhost' (Using password: YES) the location is http://www.tuggers.co.uk/fantasy-lea..._test/test.php cheers all |
|
|
|
||||
|
This really does look like you've got something wrong.
Double check the server name, database name, username and password. I'm fairly sure something isnt quiet right there looking at the error message
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
i havnt changed anything on it. except putting the password in. what could it be...? |
|
|||
|
That exact same code works fine here.
You must be using either the incorrect servername, username, password or perhaps you're trying to access a table that you don't have rights to access. Check all these things again. |
|
|||
|
i dont think ive set up a table yet, would that be why? i just set up the database stright from cpanel u see. so i dont know if there would be a table already made......
|
|
|||
|
If the table didn't exist, you would get a different error with details of the table that could not be accessed.
There must be a problem with either the hostname, database name or password. |
|
|||
|
ive checked the username and password, and they are fine. so it must be sothing to do with the host name. i have it at local host, which was the example i used. but what is an example of a hostname. its on a web host at zmb.co.uk
im stumped lol |
|
|||
|
It's usually localhost, but some hosts choose to have a seperate mysql server... they should tell you this!
|
|
|||
|
ive flagged a post on the admin support section. ill see what they have to say and get back to u
|
|
|||
|
have i eck
i wsubmitted a ticket and then somthing went wrong with the ticket section of the site. theres no a box that says Unauthorized Version Installed and a box to enter a lisence code. so ive been waiting for them to fix that. but now ive had enough! lol |
![]() |
| Tags |
| access, denied |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] HELP!! Frame source "access denied" | kevinkan | JavaScript Forum | 8 | Oct 3rd, 2007 08:28 |
| ASP Multi users Access to Microsoft Access | ish | Classic ASP | 0 | Apr 26th, 2007 20:05 |
| Access Denied Problem | EdwardA | Databases | 3 | Dec 27th, 2006 22:51 |
| Permission Denied '800a0046' - but why? | simoncpage | Classic ASP | 3 | Jan 30th, 2006 15:13 |
| Image copy denied | LadyT | Graphics and 3D | 7 | May 7th, 2005 10:26 |