Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // How to reset root password for MySQL on mac
- mysql.server restart --skip-grant-tables
- mysql
- UPDATE mysql.user SET Password=PASSWORD('new_root_password') WHERE User='root';
- exit
- mysql -u root -p
- // new_root_password or your password
- Can't start MySQL on mac due to `permission deny`?
- check if you have a mysql user on your system, or just change the ownership to your users
- sudo chown -R you-system-user:your-system-user-group /usr/local/mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement