Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Warning: mysql_db_query
Old 11-10-2008, 10:59 PM PHP Warning: mysql_db_query
Novice Talker

Posts: 7
Name: Lyndon
Trades: 0
Hello All,

Apologies if this has come up before. I am suddenly getting the following errors (in the error log) on a website I am maintaining as follows. I'm not sure if I accidently changed something. My PHP knowledge is average.


PHP Warning: mysql_db_query() [<a href='function.mysql-db-query'>function.mysql-db-query</a>]: Access denied for user 'username'@'localhost' (using password: NO) in /home/name/public_html/home.php on line 77

PHP Warning: mysql_db_query() [<a href='function.mysql-db-query'>function.mysql-db-query</a>]: A link to the server could not be established in /home/name/public_html/home.php on line 77

The error on the browser is:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mysite.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at wwwmysitenet Port 80

Any help most appreciated.
__________________
Lyndon

Last edited by maceotago; 11-10-2008 at 11:01 PM..
maceotago is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-11-2008, 03:10 AM Re: PHP Warning: mysql_db_query
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
I think the two are not directly related.
Even if you have PHP errors and warning, the web server should not send you an "internal error".

This often happens when an apache configuration file has an error, or that a module embedded into apache crashed.
The way I see it, the server might had an upgrade of apache, but not all dependencies or someone changes the apaches config files and introduced an error.

Without looking at the apache main logs, it would be hard to diagnose.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 11-11-2008, 03:15 AM Re: PHP Warning: mysql_db_query
Novice Talker

Posts: 7
Name: Lyndon
Trades: 0
Hi,

Thanks for your reply. Would something like getting the server restarted help?
__________________
Lyndon
maceotago is offline
Reply With Quote
View Public Profile
 
Old 11-11-2008, 04:10 AM Re: PHP Warning: mysql_db_query
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
maybe, but probably not. If there is an error in the apache configuration, a restart won't make it go away.
Apache is not windows 98....

As I said, the logs are more helpful than anything else, in that case.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to PHP Warning: mysql_db_query
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22231 seconds with 12 queries