Skip to content

Instantly share code, notes, and snippets.

@muke5hy
Forked from amura2406/IntallPerconaOSX.md
Created October 4, 2017 14:22
Show Gist options
  • Select an option

  • Save muke5hy/8e37c169eca697e5d8440bc93856fe6f to your computer and use it in GitHub Desktop.

Select an option

Save muke5hy/8e37c169eca697e5d8440bc93856fe6f to your computer and use it in GitHub Desktop.
Steb-by-Step to Install Percona Server (Alternative to MySQL) on Mac OS X 10.11.6 (El Capitan)

Install percona-server.

Install from homebrew

brew install percona-server

chown /usr/local

sudo chown -R <username> /usr/local

Initialize the DB

unset TMPDIR
mysqld --initialize --datadir=/usr/local/var/mysql --user=<username>

Start the server

mysql.server start

Change root password (Optional)

mysql 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment