Guest User

Untitled

a guest
Feb 24th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $> launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
  2.  
  3. $> /usr/local/Cellar/mysql/5.5.9/bin/mysqld --basedir=/usr/local/Cellar/mysql/5.5.9 --datadir=/usr/local/Cellar/mysql/5.5.9/data --plugin-dir=/usr/local/Cellar/mysql/5.5.9/lib/plugin --log-error=/usr/local/Cellar/mysql/5.5.9/data/errors.err --pid-file=/usr/local/Cellar/mysql/5.5.9/data/pidfile.pid --skip-grant-tables
  4.  
  5. $> mysql
  6.  
  7. mysql> UPDATE mysql.user SET Password=PASSWORD('root_password') WHERE User='root';
  8. mysql> FLUSH PRIVILEGES;
  9.  
  10. $> kill `cat /usr/local/Cellar/mysql/5.5.9/data/pidfile.pid`
  11.  
  12. $> ps auwx | grep mysql
  13.  
  14. $> launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
Add Comment
Please, Sign In to add comment