0

I'm setting up development environment on Mac OSX.

However the PHP web application can't connect the mysql server installed with Zend Server CE.

The error information is below,

[Type] dbnot_connect
[2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 61

Mysql database can be accessed via phpAdmin installed with Zend Server CE as well.

The same code works well on Windows or Linux in Zend Server CE.

Kane
  • 505

1 Answers1

0

Try connecting on the command line to mysql - perhaps you need to specify a different port? Also there is the issue of the file /var/mysql/mysql.sock in Lion - you have to link this file. Here's a list of instructions: http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/

Scott C Wilson
  • 2,454
  • 5
  • 23
  • 33