mysql5-server port - General Questions
Scott Haneda
talklists at newgeo.com
Thu Jan 7 18:49:32 PST 2010
Ryan, the below and your other comments, I will work on a machine in which I have some luxuries to do clean installs and wipe prefix at my leisure. I will see what I can do to present a clean and clear update to the wiki.
I think this should be in the wiki, just so you guys get the google love out of it, rather than in the port port-install messages, which will do no good to get any visibility in google, which is still a problem for MP's.
I will start with MySql, and work my way through each of the ports, until we have sectional installs for AM and P, then see how I can logically chain those instructions together into the MAMP wiki pages.
Thanks.
--
Scott * If you contact me off list replace talklists@ with scott@ *
On Jan 7, 2010, at 6:25 PM, Ryan Schmidt wrote:
>>
>> From this page:
>> http://trac.macports.org/wiki/howto/MAMP
>> Step 3
>>
>> sudo -u mysql mysql_install_db5
>> sudo chown -R mysql:mysql /opt/local/var/db/mysql5/
>> sudo chown -R mysql:mysql /opt/local/var/run/mysql5/
>> sudo chown -R mysql:mysql /opt/local/var/log/mysql5/
>>
>> If that doesn’t work try this:
>>
>> sudo mysql_install_db5
>> sudo chown -R mysql:mysql /opt/local/var/db/mysql5/
>> sudo chown -R mysql:mysql /opt/local/var/run/mysql5/
>>
>> First, what would cause the first set of steps to fail, and what can we do to make sure they do not? Second, other than the `mysql_install_db5`, I believe the rest of that work should be done in the Portfile, unless there is good reason not to.
>
> The "If that doesn't work" bit has always irritated me rather a lot. It's stupid. If you have time to figure it out, please do and correct the instructions. But as you say, it should be possible to delete the whole section, since it's telling you to do things the port already does -- the port already sets the permissions, and it already prints a message telling you to run mysql_install_db5; I'm in favor of having the installation documented either in the port's post-install or on a web page but not both.
More information about the macports-dev
mailing list