[MacPorts] howto/MAMP modified
MacPorts
noreply at macports.org
Tue Sep 16 13:28:06 PDT 2014
Page "howto/MAMP" was changed by murrayeisenberg at gmail.com
Diff URL: <https://trac.macports.org/wiki/howto/MAMP?action=diff&version=71>
Revision 71
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 70)
+++ howto/MAMP (version: 71)
@@ -166,7 +166,25 @@
{{{
export PATH=$PATH:/opt/local/lib/mysql51/bin
}}}
-Once you have done at least one of the two previous commands, you can then set up the main database like this:
+Once you have done at least one of the two previous commands, then how to set up the main database depends on the version of OS X you're using.
+
+For '''OS X 10.5 and above''', set up the main database like this:
+{{{
+sudo -u _mysql mysql_install_db5
+sudo chown -R _mysql:_mysql /opt/local/var/db/mysql51/
+sudo chown -R _mysql:_mysql /opt/local/var/run/mysql51/
+sudo chown -R _mysql:_mysql /opt/local/var/log/mysql51/
+}}}
+
+ ''If that fails to work, then try this:''
+ {{{
+sudo mysql_install_db5
+sudo chown -R _mysql:_mysql /opt/local/var/db/mysql51/
+sudo chown -R _mysql:_mysql /opt/local/var/run/mysql51/
+ }}}
+
+However, for OS X 10.4 and below, up the main database like this:
+
{{{
sudo -u mysql mysql_install_db5
sudo chown -R mysql:mysql /opt/local/var/db/mysql51/
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/MAMP>
MacPorts <http://www.macports.org/>
Ports system for OS X
This is an automated message. Someone added your email address to be
notified of changes on 'howto/MAMP' page.
If it was not you, please report to .
More information about the macports-changes
mailing list