Skip to content

Instantly share code, notes, and snippets.

@tcelestino
Created November 12, 2014 00:45
Show Gist options
  • Save tcelestino/306ed80fc5933ad27dc1 to your computer and use it in GitHub Desktop.
Save tcelestino/306ed80fc5933ad27dc1 to your computer and use it in GitHub Desktop.
set password mysql mac os
cd /usr/local/mysql/bin/
./mysql -u root -p
> Enter password: [type old password invisibly]
use mysql;
update user set password=PASSWORD("NEW_PASSWORD_HERE") where User='root';
flush privileges;
quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment