Changes between Version 70 and Version 71 of howto/MAMP


Ignore:
Timestamp:
Sep 16, 2014, 8:28:04 PM (10 years ago)
Author:
murrayeisenberg@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v70 v71  
    167167export PATH=$PATH:/opt/local/lib/mysql51/bin
    168168}}}
    169 Once you have done at least one of the two previous commands, you can then set up the main database like this:
     169Once 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.
     170
     171For '''OS X 10.5 and above''', set up the main database like this:
     172{{{
     173sudo -u _mysql mysql_install_db5
     174sudo chown -R _mysql:_mysql /opt/local/var/db/mysql51/
     175sudo chown -R _mysql:_mysql /opt/local/var/run/mysql51/
     176sudo chown -R _mysql:_mysql /opt/local/var/log/mysql51/
     177}}}
     178
     179  ''If that fails to work, then try this:''
     180  {{{
     181sudo mysql_install_db5
     182sudo chown -R _mysql:_mysql /opt/local/var/db/mysql51/
     183sudo chown -R _mysql:_mysql /opt/local/var/run/mysql51/
     184  }}}
     185
     186However, for OS X 10.4 and below, up the main database like this:
     187
    170188{{{
    171189sudo -u mysql mysql_install_db5