Buyocat Posted June 14, 2006 Share Posted June 14, 2006 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/catacombsCan 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. Quote Link to comment https://forums.phpfreaks.com/topic/11945-pear-db-and-local-server/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.