apache+php+mysql problem

Ossama Khayat okhayat at yahoo.com
Fri Jun 25 02:13:18 UTC 2004


--- Ding Li <achillis2002 at gawab.com> wrote:
[...]
> |cd $HOME|
> |mkdir public_html|
> |echo "my homepage" > public_html/index.html|
> |chmod a+x $HOME $HOME/public_html|
> |chmod a+r $HOME/public_html/index.html|

Nice tip ;) I forgot to do that.
 
[...]
> 7. http://localhost/~username/database.php
> 
> |It works fine until the last step(7th step).I didn't get the correct 
> result. Instead, I got an error
> 
> PHP database example - http://iki.fi/karvinen.
> 
> *Warning*: mysql_connect(): Access denied for user: 'root at localhost' 
> (Using password: NO) in */home1/dingli/public_html/database.php* on line *8*
> Could not connect : Access denied for user: 'root at localhost' (Using 
> password: NO)

I guess you forgot to add '' place holder for the password, like:
$dbh = mysql_connect('localhost','root','');

Hope that helps & sorry if someone already replied ;)

regards,
Ossama Khayat
Arabeyes.org member


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail





More information about the fedora-list mailing list