Install MySql Database Server On Mac. Download MySql Server community version for macOS.; Click the downloaded dmg file to open the MySql server installer package. Click the Next button in the wizard dialog until go to the Change Install Location dialog, then click the Install button to install it.sudo command:If you've never used sudo, it requests that you enter the password for your computer login on initial usage within each shell.Occasionally you have to edit administrative files and it is often easiest to do so from the shell as well. I would recommend the nano editor as the easiest to use:An alternative is to 'become root' and do the editing directly without the constantsudo qualifier. To do so, run:The hash prompt # indicates that you are root and can do administrativetasks without the sudo qualifier.