Need a php pro

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
mrjes
Forum Newbie
Posts: 4
Joined: Thu Feb 27, 2003 2:03 am

Need a php pro

Post by mrjes »

Im getting this warning when trying to access this page
What does it mean ?How can I fix it?

Warning: Access denied for user: 'breathco@localhost' (Using password: YES) in /usr/local/4admin/apache/vhosts/breathtakingescorts.com/httpdocs/new/Connections/breath.php on line 9
Access denied for user: 'breathco@localhost' (Using password: YES)


link below
http://www.breathtakingescorts.com/new/diary.php
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

probably you've tried to connect to a mysql-database server without proper credentials.
Take a look at http://www.php.net/manual/en/function.mysql-connect.php and check the user/password combination. mysql- and system-accounts may differ.

btw: the host couldn't be resolved and from the name it might have been I wouldn't like it ;)
dbcooper
Forum Newbie
Posts: 7
Joined: Tue Jan 14, 2003 4:06 am

Post by dbcooper »

volka wrote:btw: the host couldn't be resolved and from the name it might have been I wouldn't like it ;)
:lol:

FWIW, http://www.breathtakingescorts.com resolves to 66.118.156.82 for me, but I didn't visit the site.

-db
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

I've deleted the other identical post you made on this topic, you have already been offered some suggestions here - have you done as volka suggested.

Please do not start a new thread on the same problem - keep all you issues with this problem to this thread, I will delete additional threads.

Mac
mrjes
Forum Newbie
Posts: 4
Joined: Thu Feb 27, 2003 2:03 am

im very lost

Post by mrjes »

Please help clearify your suggestions this is all very new to me I apoligize for the content on the site I have nothing to do with it Im just helping out a friend.

How do I check proper credentials?
If its trying to connect to a mysql-database server without
I looked at http://www.php.net/manual/en/function.mysql-connect.php and checked Im not sure how or were to check the user/password combination. To see if mysql- and system-accounts may differ.

What do you mean by
btw: the host couldn't be resolved and from the name it might have been I wouldn't like it ?????
:?:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Re: im very lost

Post by twigletmac »

mrjes wrote:What do you mean by
btw: the host couldn't be resolved and from the name it might have been I wouldn't like it ?????
:?:
Some people access this forum from work and many employers would consider their employees accessing a site about escorts and massage services to be a not so good thing.

Mac
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

mysql maintains its own so called privilege system. It is contained within the database mysql of a mysql-server.
If it is a shared server (just another accoount e.g. for a monthly fee) check the provider's instructions; they should contain a user/pass for the database.
Otherwise take a look at http://www.mysql.com/doc/en/Installing.html and http://www.mysql.com/doc/en/Default_privileges.html (careful. Some parts already might have been done by your distribution)

http://www.mysql.com/doc/en/Privileges.html
http://www.mysql.com/doc/en/GRANT.html
Post Reply