Snow Leopard, PHP, and MySQL

Posted by Peter on Server Fault See other posts from Server Fault or by Peter
Published on 2010-01-19T20:37:51Z Indexed on 2010/04/16 9:04 UTC
Read the original article Hit count: 314

Filed under:
|
|
|

I have just installed Snow Leopard and now my PHP/MySQL program ends in a "Segmentation fault". I have been searching the web for a solution, I realize that there are some issues with SL/PHP/MySQL, but I have not found anything that works yet.

I downloaded the binary MySQL package mysql-5.1.42-osx10.6-x86_64. I have updated the php.ini file as suggested at various posts.

When I run PHP and connect to the MySQL server the behavior is a bit random. In many cases it works fine to connect and read data. In my specific case the PHP program constructs a

LOAD DATA LOCAL INFILE ...

statement to load data from a text file. It should do several such queries after each other in a loop. It works one time but the halts in a "Segmentation fault". The program worked fine in Leopard, but not now.

My versions are: OS 10.6.2, PHP 5.3.0, MySQL 5.1.42

© Server Fault or respective owner

Related posts about snow-leopard

Related posts about php