Jump to content

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/11945-pear-db-and-local-server/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.