I need help getting php under Tomcat to see my MySql databas

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
vorius
Forum Newbie
Posts: 8
Joined: Fri Jan 18, 2008 7:05 pm

I need help getting php under Tomcat to see my MySql databas

Post by vorius »

Ok I have php 5 installed and Apache Tomcat 5.x

I was able to get php working under Tomcat OK

Now I already had Mysql database 5 isntalled and want to use it via php.

I follow instructions which said go into php.ini and uncomment the php_mysql.dll extension, then I copied the php_mysql.dll and libmysql.dll so they are both under c:\php

C:\php is under my system path

Isn't that all I was supposed to do?

When I restarted my web server and ran phpinfo I still dont egt any mysql section... help!

UPDATE: It must be something specific to php under Tomcat, because I just tried Apache2 server and everything works, including mysql. But I really need this functionality under Tomcat. Perhaps I need some kind of extra libraries in Tomcat for mysql??
jeremycod
Forum Newbie
Posts: 6
Joined: Mon Feb 18, 2008 4:34 pm

Re: I need help getting php under Tomcat to see my MySql databas

Post by jeremycod »

I have the same problem. Does anybody has the solution for that.

Zoran
Post Reply