PDA

View Full Version : This can't be good.


lollicat
03-27-2009, 08:40 PM
I was a good girl, I used the tutorial step-by-step, and I was able to get onto the Admin Control Panel. However, I'm having a bit of issues.

On the home page of the actual site (kaiuu.netau.net), it doesn't show my home. It just says this:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a2090962_adopt'@'10.0.0.10' (using password: YES) in /home/a2090962/public_html/index.php on line 14

Then, some pages of the Admin Control Panel don't work. On "Home", it says this:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a2090962_adopt'@'10.0.0.10' (using password: YES) in /home/a2090962/public_html/adm/console.php on line 17

On edit page content, it says the same thing, except it's in /home/a2090962/public_html/adm/pages.php.

"Create Adoptable" is in adm/newadoptable.php on line 17.

"Delete Adoptable" is in adm/deleteadoptable.php on line 15.

Everything else works. Is this a common error? If you need the code, I can fetch it for you.

Ashje
03-28-2009, 02:55 AM
Did you CHMOD the files? Also some of this looks like errors in the files, which Brandon can help with.

lollicat
03-28-2009, 08:05 AM
Yeah, I did it exactly as the tutorial said, and all files that needed to by CHMODed were CHMODed. xD

rosepose
03-28-2009, 10:10 AM
Did you run the SQL queries?[hr]
OH, and what's the site?

lollicat
03-28-2009, 10:27 AM
Yes. The site is:

http://kaiuu.netau.net/

EDIT: And in the SQL area, it even shows the table.

BMR777
03-28-2009, 10:58 AM
The error is because the information you entered into config.php for your database information is incorrect. Double check that you entered in the correct database host, username, password and database name into config.php.

BMR777
03-28-2009, 11:18 AM
Well, I don't know. It all looks correct, but I know that 000webhost uses different settings, especially for the $dbhost value depending on which server you are on, so if you had the wrong value that is meant for another server that would cause the error because it is for the wrong 000webhost server. I guess just make sure you have the right value for $dbhost for the server you are on.

Brandon

lollicat
03-28-2009, 11:27 AM
Oh, that's it! I had the $dbuser wrong. xD Thanks for the help!

Ashje
03-28-2009, 03:52 PM
Umm, you would probably want to change your pass and edit your post because people might hack your site if you leave it up there...

lollicat
03-28-2009, 06:50 PM
Whoops! xD Okay, I deleted the post.

Ashje
03-29-2009, 02:15 AM
Lol =)