Changes between Version 5 and Version 6 of howto/MySQL


Ignore:
Timestamp:
Jan 4, 2015, 11:08:33 PM (9 years ago)
Author:
magill@…
Comment:

upd

Legend:

Unmodified
Added
Removed
Modified
  • howto/MySQL

    v5 v6  
    1515}}}
    1616
    17 = Step 2: create a database =
     17= Step 2: Create a database =
    1818{{{
    1919 '''NOTE:''' This needs a definition of the "Port Slect" mechanism. i.e. explain what it does.
     
    109109The following is a more detailed process that may achieve the same results as the interactive program.  Place the following into {{{mysql_security.sql}}} and replace the {{{'MyNewPass'}}} with your root password.  Note that the SQL will remove all access for root from any location other than 'localhost'.  You might like to keep this SQL file - all the lines beginning with '--' are doc-comments about how to use it.
    110110
     111Wrapper no longer exists...
     112
    111113{{{
    112114-- HOW TO USE THIS FILE (with a MacPorts installation):
    113 -- $ sudo /opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper stop
     115
     116--$ sudo port unload mysql56-server
     117
    114118-- $ sudo mysqld_safe --init-file=mysql_security.sql &
    115119-- The init will terminate if there are any errors in the init file.
     
    132136The server startup options {{{--skip-networking}}} and {{{--skip-grant-tables}}} may be useful while implementing security. 
    133137
    134 See also http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-unix
     138See also http://dev.mysql.com/doc/refman/5.6/en/resetting-permissions.html#resetting-permissions-unix
    135139
    136140
    137 = Step 6: Optional database upgrade = #mysql_upgrade
     141= Step 6: Database upgrade as necessary = #mysql_upgrade
    138142
    139143If the database exists from a previous installation, you may need to upgrade.
     
    142146man mysql_upgrade  -- details on the upgrade program (man page)
    143147sudo port unload mysql56-server
    144 sudo /opt/local/lib/mysql5/bin/mysql_upgrade -u root -p
     148sudo /opt/local/lib/mysql56/bin/mysql_upgrade -u root -p
    145149sudo port load mysql56-server
    146150}}}