Skip to content

Instantly share code, notes, and snippets.

@aspiers
Forked from anonymous/gist:2601525
Created May 5, 2012 10:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aspiers/2601527 to your computer and use it in GitHub Desktop.
root@coral:~/ > ps -ef | grep mysql
root 23372 22497 0 11:52 pts/0 00:00:00 grep mysql
root@coral:~/ > mysqld_safe --skip-grant-tables --skip-networking &
[1] 23373
root@coral:~/ > 120505 11:52:31 mysqld_safe Logging to syslog.
120505 11:52:31 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
root@coral:~/ > mysqladmin flush-privileges
root@coral:~/ > mysqladmin password 'foobar'
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
root@coral:~/ >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment