Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Spiers aspiers

View GitHub Profile
View gist:2601527
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