PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 19th, 2003, 09:05 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
PHP and MySql problems!

I just upgraded to Redhat Linux 8, and installed everything(apache,php and mysql) off of the install of Redhat 8. Everything is working fine except when I try to access the mysql from a PHP script. I get the Fatal error: Call to undefined function: mysql_connect() . I reinstalled Apache and MySql and all the configure options were correct. However how can I remove PHP so that I can then reinstall it, I did this and it was still using the old PHP version 4.2.2 instead of the one just installed. Also is the reinstalltion of PHP neccessary as when I use the phpinfo() function in a php script, in the results I get this --with-mysql=shared,/usr. That seems to lead me to believe that PHP is compiled with MySql. I have searched and searched google for something that applies to this case and am starting to run out of ideas. Any help would be greatly appreciated.

Reply With Quote
  #2  
Old January 19th, 2003, 09:28 PM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: PHP and MySql problems!

Is MySql running? Do A

/etc/rc.d/init.d/mysqld status

See if it shows it as running. If not do a .

chkconfig mysqld on

then do a

/etc/rc.d/init.d/mysqld start

Try it then. Mysql is not running by default.

Reply With Quote
  #3  
Old March 12th, 2003, 08:32 PM
mackula mackula is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 mackula User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHP and MySql problems!

I'm having the same problem (RedHat 8, Apache, PHP, MySql). MySql is running on my machine.
Same error when I try to access the mysql from a PHP script. Any help would be greatly appreciated

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP and MySql problems!


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 5 hosted by Hostway