Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » MySQL error in PDT "Call to undefined mysql_connect()"
MySQL error in PDT "Call to undefined mysql_connect()" [message #59337] Sun, 21 October 2007 12:37 Go to next message
Eclipse UserFriend
Originally posted by: anandavel_mcp.yahoo.co.in

hello everybody,

I am using PDT for PHP development with the Mysql 4.0.26. I was able to
debug the PHP application with the PDT. My complete application works fine
in the Internal browser. Whereas when i want to do step by step debug in PDT
itself the following error accours"
<b>Fatal error</b>: Call to undefined function mysql_connect() in
<b>C:\Program Files\Apache
Group\Apache\htdocs\PHPPRojects\GAITADMIN\Code\System\Common .php </b> on line
<b>23</b><br />

I think somewhere i need to link the connectivity for the Mysql. I did the
following steps still could not succeed.

Step 1: I downloaded the jdbc:mysql. java.5.01.jar and copied to
C:\ecilipse\connectors\ (my doubt: is the 5.01 jar file compatible with
mysql 4.0.26)

Step 2: In the preference i choose the Connectivity->Driver definitiion->
Mysql-> and added the jar copied in the step 1.

Step 3: In the edit->properties i gave the URL :
"jdbc:mysql://localhost:3306/myhelpdesk" , Database : myhelpdesk, userid,
etc.

Step 4 : Opened the Datbase development perspective. Right click on the
Database and selected New. Then selected SQLModel-JDBC-> gave a name and
description, selected Autoconnect when the wizard is finished and choose the
driver name created in the Step 2.

Step 5: When i select test, the PDT is hanging and couldnot succeed

Please help me so that i will be able to debug the Mysql function from
inside the PDT itself.

Thanks in advance for your kind help

with best regards

Anandavel
Re: MySQL error in PDT "Call to undefined mysql_connect()" [message #59359 is a reply to message #59337] Sun, 21 October 2007 13:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ganoro.gmail.com

Anandavel,
there are two things that you should separate.
1. PHP debugger.
2. DTP support for MySQL (a plugin for navigating your DBs)
they both work with different mechanism.

The reason you can't debug your script is because our php debugger
currently doesn't support MySQL, I recommend you to use ZendCore release
for this end (free software - http://www.zend.com/products/zend_core).

About the DTP plugin, you should use the latest MySQL driver and if this
doesn't work as well just ping the guys of the DTP project on
www.eclipse.org/datatools

Bests,
Roy

Anandavel wrote:

> hello everybody,

> I am using PDT for PHP development with the Mysql 4.0.26. I was able to
> debug the PHP application with the PDT. My complete application works fine
> in the Internal browser. Whereas when i want to do step by step debug in PDT
> itself the following error accours"
> <b>Fatal error</b>: Call to undefined function mysql_connect() in
> <b>C:Program FilesApache
> GroupApachehtdocsPHPPRojectsGAITADMINCodeSystemCommon.php</b > on line
> <b>23</b><br />

> I think somewhere i need to link the connectivity for the Mysql. I did the
> following steps still could not succeed.

> Step 1: I downloaded the jdbc:mysql. java.5.01.jar and copied to
> C:ecilipseconnectors (my doubt: is the 5.01 jar file compatible with
> mysql 4.0.26)

> Step 2: In the preference i choose the Connectivity->Driver definitiion->
> Mysql-> and added the jar copied in the step 1.

> Step 3: In the edit->properties i gave the URL :
> "jdbc:mysql://localhost:3306/myhelpdesk" , Database : myhelpdesk, userid,
> etc.

> Step 4 : Opened the Datbase development perspective. Right click on the
> Database and selected New. Then selected SQLModel-JDBC-> gave a name and
> description, selected Autoconnect when the wizard is finished and choose the
> driver name created in the Step 2.

> Step 5: When i select test, the PDT is hanging and couldnot succeed

> Please help me so that i will be able to debug the Mysql function from
> inside the PDT itself.

> Thanks in advance for your kind help

> with best regards

> Anandavel
Re: MySQL error in PDT "Call to undefined mysql_connect()" [message #59434 is a reply to message #59359] Mon, 22 October 2007 06:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anandavel_mcp.yahoo.co.in

Roy,

Thanks for making the issue clear for me.. I am downloading the zend core.
It seems to me that Zend is another IDE for PHP, it cant be embedded with
PDT. Is there no way to link the mysql/oracle driver into the debugger of
PDT. Awaiting your reply...

best regards
Anandavel

"Roy " <ganoro@gmail.com> wrote in message
news:50b81436d7b47f6ab875c53c4994ba6e$1@www.eclipse.org...
> Anandavel,
> there are two things that you should separate.
> 1. PHP debugger.
> 2. DTP support for MySQL (a plugin for navigating your DBs)
> they both work with different mechanism.
>
> The reason you can't debug your script is because our php debugger
> currently doesn't support MySQL, I recommend you to use ZendCore release
> for this end (free software - http://www.zend.com/products/zend_core).
>
> About the DTP plugin, you should use the latest MySQL driver and if this
> doesn't work as well just ping the guys of the DTP project on
> www.eclipse.org/datatools
>
> Bests,
> Roy
>
> Anandavel wrote:
>
>> hello everybody,
>
>> I am using PDT for PHP development with the Mysql 4.0.26. I was able to
>> debug the PHP application with the PDT. My complete application works
>> fine in the Internal browser. Whereas when i want to do step by step
>> debug in PDT itself the following error accours"
>> <b>Fatal error</b>: Call to undefined function mysql_connect() in
>> <b>C:Program FilesApache
>> GroupApachehtdocsPHPPRojectsGAITADMINCodeSystemCommon.php</b > on line
>> <b>23</b><br />
>
>> I think somewhere i need to link the connectivity for the Mysql. I did
>> the following steps still could not succeed.
>
>> Step 1: I downloaded the jdbc:mysql. java.5.01.jar and copied to
>> C:ecilipseconnectors (my doubt: is the 5.01 jar file compatible with
>> mysql 4.0.26)
>
>> Step 2: In the preference i choose the Connectivity->Driver definitiion->
>> Mysql-> and added the jar copied in the step 1.
>
>> Step 3: In the edit->properties i gave the URL :
>> "jdbc:mysql://localhost:3306/myhelpdesk" , Database : myhelpdesk, userid,
>> etc.
>
>> Step 4 : Opened the Datbase development perspective. Right click on the
>> Database and selected New. Then selected SQLModel-JDBC-> gave a name and
>> description, selected Autoconnect when the wizard is finished and choose
>> the driver name created in the Step 2.
>
>> Step 5: When i select test, the PDT is hanging and couldnot succeed
>
>> Please help me so that i will be able to debug the Mysql function from
>> inside the PDT itself.
>
>> Thanks in advance for your kind help
>
>> with best regards
>
>> Anandavel
>
>
Re: MySQL error in PDT "Call to undefined mysql_connect()" [message #59459 is a reply to message #59434] Mon, 22 October 2007 08:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ganoro.gmail.com

1. Zend Core has an integrated debugger with mysql support (and if you
need pdo you should enable it through the php.ini or the UI).
2. DTP (!=PDT) is another plug-in for connectivity and I think that it is
not intuitive as we want it to be. let's wait to their 1.6 version...
Re: MySQL error in PDT "Call to undefined mysql_connect()" [message #59508 is a reply to message #59434] Mon, 22 October 2007 16:37 Go to previous message
Eclipse UserFriend
Originally posted by: Martin.eisengardt.de

> Thanks for making the issue clear for me.. I am downloading the zend core.
> It seems to me that Zend is another IDE for PHP, it cant be embedded with
> PDT. Is there no way to link the mysql/oracle driver into the debugger of
> PDT. Awaiting your reply...

Downloading zend core is the "Plug-and-Play way" :-)
Of course there is another way. You can download and configure PHP all by
yourself. At window->preference there is a way to tell PDT about your
php.exe manually. But be aware of some limitations. Have a look at
news-message "command line debuugging" from Ben Nording about 15 days
before. You must locate your configuration (php.ini) near your php.exe so
PDT finds it. Perhaps that's your problem.

See Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=205754
Previous Topic:Imagick support in PDT
Next Topic:Feature question for depoying
Goto Forum:
  


Current Time: Mon Jan 30 12:54:34 GMT 2023

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

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

Back to the top