Ticket #21581 (closed request: duplicate)
MySql socket location change
|Reported by:||scott@…||Owned by:||ryandesign@…|
Can we start some discussion on this, I see this as being painful for MacPorts users. Especially on one of the users that I believe MacPorts is widely used, which is getting MAMP running.
At some point in the past I could get php 5, MySql5, and Apache 2 running in a few commands, with little trouble.
I can not find, or at least, I do not understand how to use trac well enough to see when the socket location of MySql was changed, though I am looking to know why.
Php looks in a known location, /tmp I believe. This I also believe is a hard coded in the source, or is a compile time option that can be changed.
If it can be changed at compile time, then why not set the socket to MySql to the right location when php is built?
My ideal solution would be to put the MySql socket in the location that php looks for it by default.
As it is now, if I were to port install php5 port install mysql5 port install apache2
There is a good deal of work to be done before I am able to use those tools. On a local dev machine, I never even bothered to set up php.ini, and just relied on the defaults of php without any explicit file.
Now, there are no less than three socket locations I need to change.
What are your thoguhts on this, and what is the history? My vote, change MySql to put the socket where php defaults to looking for it. We already had a user installing phpMyAdmin, the simplest of many softwares to install, ending up dropping localhost in favor of a tcp connection just to get this to work.
- Cc jwa@… added
- Owner changed from macports-tickets@… to ryandesign@…
- Keywords php5 added; mysql5 removed
- Status changed from new to assigned
- Port changed from mysql5 to php5-mysql