Hey Ryan and others, I don't know where this stands, exactly, but it _would_ be really cool if getting mysql5 to run was only a matter of: - sudo port install mysql5 +server - sudo port load mysql5 (and the the end result of this would be that the server is actually running and usable) Of course at the moment, that doesn't work, because: - You have to apply a default my.cnf file - You have to do various database setup things - There is no port load command What else? It would be really cool to think this issue through for mysql (and apache2, and php) so that we can make this smooth. What infrastructure enhancements do we need to make this super easy? We're not there yet. Potential enhancements: - port load command - automated way to specify that default conf files be applied - usable activation phase? Thoughts? Hopefully this work would apply to lots of ports, but I think it would be useful to focus on a few key ports, like the aforementioned MAMP. James On Nov 20, 2007, at 9:03 PM, Ryan Schmidt wrote:
On Nov 20, 2007, at 20:12, Thomas Allen wrote:
I'm trying to setup a local MAMP server using Macports, and all I'm running into are problems. MySQL (4) can't connect, http://localhost/ is DOA, and I have no real way to test my PHP installation. I'd like to have the following setup:
MySQL 5, PHP 5, Apache 2
I suspect that my main problem is daemons for these services not starting. Anyway, I really put my faith in Macports here, and it would mean a lot if someone could lend a hand.
sudo port install mysql5 +server sudo port install apache2 sudo port install php5 +apache2
It will show you the launchctl commands you need to enter to start mysql5 and apache2 at system startup.
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
On Nov 21, 2007, at 10:17 AM, James Berry wrote:
I don't know where this stands, exactly, but it _would_ be really cool if getting mysql5 to run was only a matter of:
- sudo port install mysql5 +server
Why not a new port, mysql5-server (which depends on mysql5 and then does the appropriate setup?)
- sudo port load mysql5
(and the the end result of this would be that the server is actually running and usable)
mysql5-server would have the startupitem foo (we would still want/need 'port load' to get the server started up).
Of course at the moment, that doesn't work, because:
- You have to apply a default my.cnf file - You have to do various database setup things
This stuff could be set up in the mysql5-server port
Potential enhancements:
- port load command - automated way to specify that default conf files be applied
It would be nice to have ports be able to mark conf files somehow so we can treat them specially (ie automatically install default ones without them being uninstalled/replaced when upgrading)
- usable activation phase?
Are you thinking of having 'activate' run for direct mode too here? (or what?)
Thoughts? Hopefully this work would apply to lots of ports, but I think it would be useful to focus on a few key ports, like the aforementioned MAMP.
-- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
On Nov 21, 2007, at 10:54, Daniel J. Luke wrote:
On Nov 21, 2007, at 10:17 AM, James Berry wrote:
I don't know where this stands, exactly, but it _would_ be really cool if getting mysql5 to run was only a matter of:
- sudo port install mysql5 +server
Why not a new port, mysql5-server (which depends on mysql5 and then does the appropriate setup?)
- sudo port load mysql5
(and the the end result of this would be that the server is actually running and usable)
mysql5-server would have the startupitem foo (we would still want/ need 'port load' to get the server started up).
Of course at the moment, that doesn't work, because:
- You have to apply a default my.cnf file - You have to do various database setup things
This stuff could be set up in the mysql5-server port
The discussion of whether to have mysql5 +server or mysql5-server is completely unrelated to the issues of this thread, IMHO, and are tracked in: http://trac.macports.org/projects/macports/ticket/12313 That ticket is for separating mysql5 into mysql5-client and mysql5- server, and later renaming mysql5-client back to mysql5 to achieve what you suggest, but I do not yet know how to do this in a way that is not painful for existing installations. See note in ticket.
participants (3)
-
Daniel J. Luke
-
James Berry
-
Ryan Schmidt