Jump to content


Photo

Enable MySQL Support in PHP5!


  • Please log in to reply
6 replies to this topic

#1 karstev

karstev
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 09 September 2006 - 11:42 AM

Please does anyone have any ideas, I am banging my head against a wall, seems I have done all that is mentioned and still cant get php to communicate with mySQL - mys system info is
PHP - 5.1.4
mySQL - 5.0
Appache 2.2.3
Windows XPSP2

I have updated my php.ini, set up the extension_dir = c:\php\ext  (yes this path exists), uncommented extension=php_myql.dll.
placed the php.ini in my windows directory (just incase)as I updated my environment variable path to include c:\php, and this is confirmed when viewing my phpinfo. Copied the libmysql.dll to my windows directory, also put it in the system32 directory just to be sure. Made sure I stopped and restarted the server, heck I even shut down windows and restarted just to be sure..
Should I use another version of appache.
I know this has been posted many times but have been through all of recommended changes and cant seem to fix this issue.

Hope some one can help





#2 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 13 September 2006 - 12:36 PM

Are you using Wamp? If you are using it you don't need to change anything else..
Just run both the services and your done..

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#3 vbnullchar

vbnullchar
  • Members
  • PipPipPip
  • Advanced Member
  • 428 posts
  • LocationPasig City, Philippines

Posted 25 September 2006 - 05:03 AM

extension_dir = c:/phpext/ < try this
Registered Linux User #399942
Ubuntu User #14134
--
my blog

#4 RandomZero

RandomZero
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 03 October 2006 - 01:53 PM

I'm pretty sure I have the same problem.

I'm using pretty much the same setup as you (Apache 2.2.3, PHP 5.2, MySQL 5.0.24a on WinXP SP1) and I'm unable to get PHP and MySQL to work together.

Have you found a solution to this problem?

#5 vbnullchar

vbnullchar
  • Members
  • PipPipPip
  • Advanced Member
  • 428 posts
  • LocationPasig City, Philippines

Posted 03 November 2006 - 05:55 AM

uncomment the mysql extension in your php.ini file
extension=php_mysql.dll

then copy libmysql.dll from you php directory your system32 folder restart apache server...
Registered Linux User #399942
Ubuntu User #14134
--
my blog

#6 Zane

Zane
  • Administrators
  • Advanced Member
  • 4,134 posts

Posted 03 November 2006 - 06:51 AM

myself I don't put in it the Windows Dirs

when installing php I copy all the DLLs from the PHP folder to the Apache's bin folder as well as the php.ini file

and like vbnullchar said...you need
to put
extension_dir = c:/php/ext
in your Apache's http.conf file
try it that way and restart Apache and see how it goes....

btn_donate_SM.gif Want to thank me? Contribute to my PayPal piggy-bank
 

172938.png

#7 slythfox

slythfox
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 15 December 2006 - 07:31 AM

I'm having the same sort of issue. I'm creating my own WAMP because others aren't quite what I'm looking for. I've got everything working, except that I can't get the php extension to work. I've modified php.ini with extension_dir to ="./ext/" and have commented out both php_mysql.dll and php_mysqli.dll extensions, and also copied them to the root php dir. Everything suggested in this thread has been tried (well, almost).

Using: php 5.2.0 and mysql 5.1.14-beta




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users