Jump to content

how to recompile PHP with MySQL support??


SZero

Recommended Posts

hi every1

 

i am having the annoying "Undefined Function" message, anyway i read many threads on how to solve it but here's the problem, when i use phpinfo();, i didn't find the part with MySql info, i searched and found that if it doesn't exist then i need to recompile PHP with MySQL support before starting editing php.ini and that other stuff

 

 

please please i really need some help on this one

 

thanks guys...

Link to comment
https://forums.phpfreaks.com/topic/70344-how-to-recompile-php-with-mysql-support/
Share on other sites

"Undefined Variable" notices has nothing to do with mysql? Do you mean "Undefined mysql_connect"? If you do then what OS (Window, Mac, *nix) is PHP running on. If you're on Windows, PHP does not need recompiling. Instead please read this FAQ.

 

If you're on a Mac/*nix then yes you do need to recompile PHP with the --with-mysql="PATH/TO/MYSQL" command when recompiling.

recompiling is only need when PHP is used on non-Windows based operating system. The PHP package for windows is all pre-compiled - no need to recompile anything on windows. All you have to do is enable the mysql extension within the php.ini. The FAQ I linked to tells you how to enable the mysql extension on windows.

 

if you are not using windows then I can't provide instructions for recompiling, except from what I read form the manual you have to use the --with-mysql="PATH/TO/MYSQL" command when recompiling.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.