Jump to content


Photo

PEAR DB and local server


  • Please log in to reply
No replies to this topic

#1 Buyocat

Buyocat
  • Members
  • PipPipPip
  • Advanced Member
  • 267 posts

Posted 14 June 2006 - 02:57 AM

I'm trying to set up my mac, 10.4, to work as a server. I have apache php and mysql installed (mostly from what was pre-installed or through entropy's installers), anyway they all seem to be working smoothly, that is I have installed phpMyAdmin as well as other php/mysql applications on the server. However when I try to make my own application and use the DB package to connect to mysql something goes wrong. No error is printed but it is clear that everything stops at the DB::connect($dsn) step. My $dsn string works on a remote server, and looks like this:
mysql://Catch22:divein@localhost/catacombs
Can anyone suggest what I might do to fix this buy? I have heard tale of something with mac servers and localhost, but I'm not sure whether to replace localhost with 127.0.0.1 or what exactly.
Looking for some easy-to-use tools?  Try these, https://sourceforge....jects/utils-php -- I made them myself.  They're distinct tools which are easy to understand and use.  See some examples uses at http://www.anotherearlymorning.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users