[MacPorts] howto/MySQL modified
MacPorts Wiki
noreply at macports.org
Sun Apr 8 08:04:09 UTC 2018
Page "howto/MySQL" was changed by WolfgangFahl
Diff URL: <https://trac.macports.org/wiki/howto/MySQL?action=diff&version=27>
Revision 27
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MySQL
=========================================================================
--- howto/MySQL (version: 26)
+++ howto/MySQL (version: 27)
@@ -28,14 +28,15 @@
This page shows how to install and use the mysql56 port, but you can use another version if you prefer; all of these ports use a similar directory layout.
-= Step 1: Install MySQL = #mysql
+= Installation =
+== Step 1: Install MySQL == #mysql
If you want to run a MySQL server on this computer, install MySQL like this:
{{{
$ sudo port install mysql57-server
}}}
-= Step 2: Create a database =
+== Step 2: Create a database ==
Also, mysql57 now uses the `''port select''` mechanism to manage the creation of symlinks in
/opt/local/bin. Using `port select` will install a link for exactly one of the available
@@ -74,7 +75,7 @@
$ sudo chown -R _mysql:_mysql /opt/local/var/log/mysql57/
}}}
-= Step 3: Activate the installation =
+== Step 3: Activate the installation ==
Activate your MySQL server installation so that it autostarts when you boot your machine:
{{{
$ sudo port load mysql57-server
@@ -93,7 +94,7 @@
grep mysql
}}}
-= Step 4: Set the MySQL password =
+== Step 4: Set the MySQL password ==
Set the MySQL `root` password (use the auto-generated password from the --initialize command above for MySQL 5.7. For MySQL 5.6 and earlier the password should currently be empty; see also the security option below):
{{{
$ /opt/local/lib/mysql57/bin/mysqladmin -u root -p password <new-password>
@@ -134,7 +135,7 @@
}}}
again to verify that the daemon is again running.
-= Step 5: Optional security configuration = #mysql_security
+== Step 5: Optional security configuration == #mysql_security
There is an interactive program to secure a MySQL installation.
@@ -175,7 +176,7 @@
See also http://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html#resetting-permissions-unix
-= Step 6: Database upgrade as necessary = #mysql_upgrade
+== Step 6: Database upgrade as necessary == #mysql_upgrade
If the database exists from a previous installation, you may need to upgrade.
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/MySQL>
MacPorts <https://www.macports.org/>
Ports system for macOS
This is an automated message. Someone added your email address to be
notified of changes on 'howto/MySQL' page.
If it was not you, please report to admin at macports.org.
More information about the macports-changes
mailing list