Eclipse debugging and mysql connections
Posted: Sat Jun 06, 2009 7:14 pm
Anyone have any idea why I can connect to and browse my mysql database using Eclipse's Data Source Explorer but when I try to debug a page php says it can't connect to mysql.
My debug output is the typical:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /Applications/XAMPP/xamppfiles/htdocs/_experiment_islandslimited/includes/commonConfig.php on line 60
Could not connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
But if I load that file in the browser via localhost it all works fine. I've been trying to debug with eclipse for over 6 months now and have had zero success with any code that relies on a mysql database.
Also I just got xdebug installed into my php but I can't get it to show up as a debugger option in eclipse (Zend Studio for Eclipse actually).
My debug output is the typical:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /Applications/XAMPP/xamppfiles/htdocs/_experiment_islandslimited/includes/commonConfig.php on line 60
Could not connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
But if I load that file in the browser via localhost it all works fine. I've been trying to debug with eclipse for over 6 months now and have had zero success with any code that relies on a mysql database.
Also I just got xdebug installed into my php but I can't get it to show up as a debugger option in eclipse (Zend Studio for Eclipse actually).