MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Daniel Kasak Date:January 21 2008 4:46am
Subject:Re: Where can I get
View as plain text  
On Sat, 2008-01-19 at 19:02 +0000, Apple7777 wrote:

> Fatal error: Call to undefined function mysql_connect() in
>  /home/re/script.php on line 3
> I've googled and found out that I need to add
>  in CLI's php.ini file (separate php.ini file that works for CLI only).
> The problem is my PHP configured with MySQL support and MySQL
>  library doesn't load as dynamic library.
> I've searched for on my server (find / -name, but found only
> this:
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-
> multi/auto/DBD/mysql/
> I guess it's from another installation, but I've copied it to
>  extension directory and added "" to the CLI's php.ini file.

That definitely won't work. The file you found belongs to Perl, not PHP.
Remove it from where you copied it.

> So, I guess I was right, it's from another installation.
> I wonder, where can I get proper Can I download it
> somewhere?

It's been quite a while since I built PHP manually. From memory, it
included MySQL drivers ( maybe with a configure option ). I'm not sure
if it's still included or not. How did you install PHP? Was it with a
package manager, or was it already installed by your distro, or did you
install it manually?

Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak@stripped

Where can I get Jan
  • Re: Where can I get Jan
  • Re: Where can I get Kasak21 Jan