Jump to content


Photo

Problem with installed MySQL [RESOLVED]


  • Please log in to reply
2 replies to this topic

#1 OhLordy

OhLordy
  • Members
  • Pip
  • Newbie
  • 4 posts
  • LocationSurrey/England

Posted 03 February 2003 - 03:50 PM

I have MySQL installed on my Redhat 8 machine. I know it\'s working because I can use it from the command line.
However when I call it from PHP I get this error

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/tester.php on line 9


It sounds like I need to add something to PHP to make MySQL work but I installed them together with the web development package that came with Redhat 8.

Thanks in advance
Rob

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 03 February 2003 - 07:05 PM

make a phpinfo() page and check your \"configure command\" at the top. does it have a --with-mysql= option?
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 OhLordy

OhLordy
  • Members
  • Pip
  • Newbie
  • 4 posts
  • LocationSurrey/England

Posted 04 February 2003 - 05:25 PM

Thanks effigy
realised how silly my question was when I found a php-mysql rpm file. I\'ve got it sorted now.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users