Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT, MySQL, Zend CE... it won't work :((Issues with mysql )
PDT, MySQL, Zend CE... it won't work :( [message #529374] Sat, 24 April 2010 09:27 Go to next message
Pierre is currently offline PierreFriend
Messages: 2
Registered: April 2010
Junior Member
Hi,

I've recently installed Eclipse with PDT. To debug and use MySQL I've also installed Zend Server CE. But I can't get it to work. I'm not sure if I use the right method and configuration.
In Eclipse I set the debug path to be : "/usr/local/zend/bin/php" and the respective php.ini file: /usr/local/zend/etc/php.ini
It works fine, I can execute the PHP code and everything... but when it comes to the MySQL part it gets ugly.
I used the phpMyAdmin that comes with Zend CE to create tables, users and everything. But when I try to connect to it in my code simply with the mysql_connect method I get "mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)".
I've tried to connect to 'localhost', '128.0.0.1'... with all possible ports (3306...) and still the same error message. I know for sure that my user and pass are correct and that the MySQL server is running since I can access it with phpMyAdmin.
Shouldn't it work out of the box without further configuration? I've tried to change some setting in the php.ini, and messing with the MySQL config but it didn't help so I put everything back to default.

Or is there a simpler / better solution to test the PHP and MySQL code with PDT? I don't want to have to upload my code every time to a web server to test everything...

Thank you so much for you help!

--Pierre
Re: PDT, MySQL, Zend CE... it won't work :( [message #529422 is a reply to message #529374] Sun, 25 April 2010 07:46 Go to previous messageGo to next message
Roy Ganor is currently offline Roy GanorFriend
Messages: 149
Registered: July 2009
Senior Member
hi Pierre,
Can you post your phpinfo() doc?
It will provide a good picture about your extensions loaded into the current php process.

Roy
Re: PDT, MySQL, Zend CE... it won't work :( [message #529447 is a reply to message #529422] Sun, 25 April 2010 16:23 Go to previous message
Pierre is currently offline PierreFriend
Messages: 2
Registered: April 2010
Junior Member
hi Roy,

thank you for helping me, here is my phpinfo that i've pasted to a website: http://lavauxexpress.ch/phpinfo.php

-- Pierre

Previous Topic:Auto Update SVN Projects?
Next Topic:Updating 1.03 to 1.05 - cannot update wst
Goto Forum:
  


Current Time: Tue Mar 19 05:58:19 GMT 2024

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

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

Back to the top