#22662: php5-mysql won't connect to mysql - Redux --------------------------------+------------------------------------------- Reporter: tq@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: --------------------------------+------------------------------------------- I was horribly embarrassed in my previous post about this. The resolution was to remove the extension_dir and, though I swear swear swear that I had done it many times, upon your recommendation, it worked. I was happy and went to work on my project. A couple of weeks later, I got to the part that needed to actually use mysql and ARRRGGGGGHHHH!!!! the problem had returned. function_exists('mysql_connect') is false. Not wanting to repeat my embarrassment, I have spent an incredible amount of time trying to make it work. I even figured out how to compile php and changed the configuration to include --with-mysql=... . It worked except for mysql. (That experiment told me that it couldn't find the mysql header files even though I could see a whole lot of .h files in the directory I pointed to.) Anyway, I decided that I must have so totally screwed up my system that it was the problem. I cleaned up a hard drive and installed Snow Leopard from scratch. Then xCode. The Macport. Then the whole php/mysql setup. I had two problems. First, the aspx command to add php to the httpd.conf told me it could not find httpd.conf!! I edited httpd.conf so that it executed php and it still doesn't find mysql. This time it is a new system with everything under the control of Macports. The only thing I changed is apache stuff to point at my local directory and access php. I am attaching the script I used to install the ports, the transcript of the installation process and a pdf of phpinfo(). I have burned a huge amount of time on this and am completely out of ideas. Any help will be deeply appreciated. TQ White II -- Ticket URL: <http://trac.macports.org/ticket/22662> MacPorts <http://www.macports.org/> Ports system for Mac OS