[MacPorts] #22209: php5-mysql won't connect to mysql

MacPorts noreply at macports.org
Thu Oct 22 15:34:39 PDT 2009


#22209: php5-mysql won't connect to mysql
--------------------------------+-------------------------------------------
 Reporter:  tq@…                |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.8.1                                
 Keywords:                      |        Port:                                       
--------------------------------+-------------------------------------------
 I upgraded to Snow Leopard and thought it a good time to refresh my
 development environment. As suggested, I reinstalled a fresh macPort,
 cleaned and uninstalled. Then I installed the things I need.

 I know that I want mysql5-server. I know that I want php5-mysql. I also
 want mcrypt, tidy and mbstring (phpmyadmin likes it). So, I installed
 them. It all works great except that php does not operate mysql properly.
 In a practical sense, that means I get an error, "Call to undefined
 function mysql_connect()".

 I tried all sorts of thing. Uninstalling and reinstalling. Twice I got it
 to work. Once, with no clue of how. The other time by installing
 php5-mysql first. However, I have not been able to get it to work again
 and I have tried a million variations.

 When it worked, I observed that the configuration string included, "--with
 mysql" (or something close). It also had sections in phpinfo() for mysql
 and mysqli as well as mysqlnd. These are missing in all the ones that
 don't work.

 Preparing for this inquiry, I did a complete clean, uninstall, reboot, and
 install php5-mysql cycle. It still gives me the error message. In case it
 helps, I have attached a transcript of my shell session and a pdf of my
 phpinfo() report.

 I really need this to work. Help will be deeply appreciated.

 tqii

-- 
Ticket URL: <http://trac.macports.org/ticket/22209>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list