MySQL 5.7 Installation Guide
MySQL :: Begin Your Download
Go to the MySQL site http://mysql.com and click on the "DOWNLOADS" tab.
When the page comes up, you can skip the login, if you like, by clicking the link highlighted below.
MySQL Installer
Run the MySQL installer.
Copy or screengrab this password. IMPORTANT!!!
Run mysql_secure_deployment
Open the Terminal on your Mac and do the following steps. The screenshots are provided for reference.
NOTE: Terminal commands and responses are shown in code blocks below
Run the following command:
<hostname>:~ admin$ /usr/local/mysql/bin/mysql_secure_installation
The response should be:
Securing the MySQL server deployment.
Enter password for user root:
Enter the password you collected above
Validate password - Localhost access only
VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No:
If you do not want to require complex passwords type ‘n’ for this one
Using existing password for root.
Change the password for root ? ((Press y|Y for Yes, any other key for No) :
Choose to keep this default password or change it. "y" changes it
Type your new password:
New password:
Re-enter new password:
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) :
NSA recommends you choose yes (y) for this.
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) :
NSA recommends you choose yes (y) for this.
Success.
Remove "test" db - Reloading privilege tables
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) :
NSA recommends you choose yes (y) for this.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) :
NSA recommends you choose yes (y) for this
Success.
All done!
Conclusion
This completes this document.
If you have questions about the configuration or operation of this system please contact support@northshoreautomation.com, if you have a current North Shore support contract, Squarebox Systems, or your system administrator.