Advertisement
Guest User

Untitled

a guest
Mar 20th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2.  
  3. // How to reset root password for MySQL on mac
  4. mysql.server restart --skip-grant-tables
  5. mysql
  6. UPDATE mysql.user SET Password=PASSWORD('new_root_password') WHERE User='root';
  7. exit
  8. mysql -u root -p
  9. // new_root_password or your password
  10.  
  11.  
  12. Can't start MySQL on mac due to `permission deny`?
  13. check if you have a mysql user on your system, or just change the ownership to your users
  14. sudo chown -R you-system-user:your-system-user-group /usr/local/mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement