22 September 2005, 22:19 UTC#1
me and brent are working on a side project and its a lilttle like ratemypic.com im trying to get this sript to work, but its bein uber gay.
/* DB VARIABLES*/
$dbhost = "localhost";
$dbuser = "wereback_joe";
$dbpass = "MYPASS";
$dbname = "picme";
$adminpass = "MYPASS";
thats just the part I need help with. can n e one help me..this is the eorr I get when itry to run it.
"Warning: mysql_connect(): Access denied for user: 'wereback_joe@localhost' (Using password: YES) in /home/wereback/public_html/ugly/settings.php on line 28
Cannot connect to your database at this time"
22 September 2005, 22:21 UTC#2
Have you chmod'ed the permission settings for the database file?
I had this problem too when using the localhost dir but I wasn't able to fix it

22 September 2005, 22:24 UTC#3
chmod it to what? would 777 work?
22 September 2005, 22:25 UTC#4
No, 666.
22 September 2005, 22:25 UTC#5
ok..I can do that. but what database file?
22 September 2005, 22:29 UTC#6
QUOTE
Cannot connect to your database at this time
Have you not got a .sql file?
22 September 2005, 22:32 UTC#7
did you setup the user to have permissions to the database, in cpanel
22 September 2005, 22:32 UTC#8
lemme do a check
....
....
....
Ok, every file I have is PHP, I went to myPHP Admin and created the database (picme) without the brackets. I didnt create any tables in that data base, is that a problem?
22 September 2005, 22:34 UTC#9
and are you sure the database isnt wereback_picme , becuase of the user name scheme im just guessing
22 September 2005, 22:37 UTC#10
its a possibilty. is there anything I ould change that mite make it work?
I took a scren shot of myPHP. maybe I can get more help this way
Attachments
myphp.JPG · 18 KB
Attachment metadata survives, but the file is absent from the recovered server backup.
22 September 2005, 22:50 UTC#11
yeah, try changing picme to wereback_picme
that looks like it will work
22 September 2005, 22:51 UTC#12
so like this?
/* DB VARIABLES*/
$dbhost = "localhost";
$dbuser = "wereback_joe";
$dbpass = "MYPASS";
$dbname = "wereback_picme";
$adminpass = "MYPASS";
22 September 2005, 22:51 UTC#13
yeah
22 September 2005, 22:54 UTC#14
tried that. No dice
Warning: mysql_connect(): Access denied for user: 'wereback_joe@localhost' (Using password: YES) in /home/wereback/public_html/ugly/settings.php on line 28
Cannot connect to your database at this time
22 September 2005, 23:05 UTC#15
hmm, im not sure, but ive never used that admin password variable, usually all you need is the database, a user and pass that lines up with the database
22 September 2005, 23:06 UTC#16
should I try to get rid of that variable?
22 September 2005, 23:50 UTC#17
yeah, it may be causeing the problem
22 September 2005, 23:55 UTC#18
didnt work, can I sent you the file and you look it over?
22 September 2005, 23:56 UTC#19
ok, ill try
22 September 2005, 23:56 UTC#20
thnx
Attachments
settings.php · 4 KB
Attachment metadata survives, but the file is absent from the recovered server backup.
23 September 2005, 00:02 UTC#21
ok this might fix it , not sure though....
Attachments
settings.php · 4 KB
Attachment metadata survives, but the file is absent from the recovered server backup.
23 September 2005, 00:04 UTC#22
no dice
23 September 2005, 00:05 UTC#23
hmmm
23 September 2005, 00:26 UTC#24
what did you change in it?
23 September 2005, 00:37 UTC#25
make sure you added the user to the DB in Cpanel
23 September 2005, 00:38 UTC#26
im pretty sure I did, I went to Cpanel>my SQL databases, added database(picme)
23 September 2005, 00:41 UTC#27
server error.
23 September 2005, 00:41 UTC#28
so my shit is correct?
23 September 2005, 01:35 UTC#29
QUOTE(joe_thc @ Sep 22 2005, 08:41 PM)
so my shit is correct?
[right][snapback]182571[/snapback][/right]
probbaly not...
23 September 2005, 03:34 UTC#30
If you add me to MSN I can see if I can help.