Install from homebrew
brew install percona-serverunset TMPDIR
mysqld --initialize --datadir=/usr/local/var/mysql --user=<username> --port=3307 --general-log-file=/var/log/percona/percona-error.log/usr/local/Cellar/percona-server/5.7.20-19/bin/mysql.server startmysql will create temporary password for you and show it in the output of mysql.server start.
To change it
mysqladmin -u root -p'<temp_password>' password '<new_password>'To check whether it is working
mysql -u root -p
<Type in password>