Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Eclipse php development tools (PDT) vs MAMP Mysql
Eclipse php development tools (PDT) vs MAMP Mysql [message #587863] Sat, 15 September 2007 08:26
Eclipse UserFriend
Originally posted by:

Hi all,

I'm a new eclipse user, having used textwrangler for my php editing
needs up to now ;)

my configuration is like this :

Mac Os X 10.4.10,
MAMP 1.7 with Apache on port 80 and mysql on port 3306.

Php version 5.2.3

Eclipse 3.3.0 with debugger from Zend

Everything works, also the debugging, except the mysql connection.

I can connect to mysqlwith cocoa using this unix socket

In php however, when my code hits

@mysql_connect($this->server, $this->user, $sqlpassword, $new_link);

i get thrown into my error exception
General Error
SQL ERROR [ mysql4 ]
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
An sql error occurred while fetching this page. Please contact an
administrator if this problem persists.

Obviously the socket is wrong but i don't know how to correct this in

This is my phpinfo concerning mysql : you can see that the socket is

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.41
MYSQL_SOCKET /Applications/MAMP/tmp/mysql/mysql.sock
MYSQL_INCLUDE -I/Applications/MAMP/Library/include/mysql
MYSQL_LIBS -L/Applications/MAMP/Library/lib/mysql -lmysqlclient

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket /Applications/MAMP/tmp/mysql/mysql.sock
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

So how do i put Eclipse in the right direction ?

Many thanks in advance!

Previous Topic:Eclipse php development tools (PDT) vs MAMP Mysql
Next Topic:Connection wizard - Picture 1.png (1/1)
Goto Forum:

Current Time: Sun Oct 04 15:22:39 GMT 2015

Powered by FUDForum. Page generated in 0.01632 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software