MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 22nd, 2004, 03:14 AM
richardtham richardtham is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 9 richardtham User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PHP Not Connecting To MySQL

I had a hard time trying to convince my college server administrator that the PHP is not connecting to MySQL DB.
When I run the <?php phpinfo();?> here:
http://lilium.help.edu.my/~thamyw/test.php

.....it seems like there is no connection configured between PHP and MySQL.

I have created the MySQL database called "books".

When I run the PHP scripting connecting to MySQL, it simply does not return any results display here:
http://lilium.help.edu.my/~thamyw/search.html (pls enter "michael" as your search query)

Would appreciate some pointers on how to convince my ServerAdmin that the connection is not properly set up yet.

For your info, we are running on:
Redhat 8.0
PHP 4.2.2
MySQL V.5.0
Apache 2.0.40 Server



Thanks in advanced !!

Reply With Quote
  #2  
Old March 22nd, 2004, 02:42 PM
pentapenguin pentapenguin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 51 pentapenguin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 7 sec
Reputation Power: 6
Try using a die command on each of your "mysql_" statement like this:
mysql_query($query) or die ("error report:<br>" . mysql_error());

See if that gives you any help.

Reply With Quote
  #3  
Old March 24th, 2004, 07:47 AM
asifpervez asifpervez is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 asifpervez User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 4 sec
Reputation Power: 0
sql connectivity error

Hi, I am facing this error problem in both my website and apache. so can any one tell me how 2 solve this problem?

MySQL Connection Failed: Access denied for user: 'root@localhost'

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > PHP Not Connecting To MySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT