From: Rafael Kitover Date: Wed, 20 May 2009 03:11:12 +0000 (+0000) Subject: add mysql lost password faq X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e416146eb60e344696702986dc8cf171314634d8;p=dbsrgits%2FDBIx-Class-Historic.git add mysql lost password faq --- diff --git a/lib/DBIx/Class/Manual/FAQ.pod b/lib/DBIx/Class/Manual/FAQ.pod index 9bdfdd4..d635342 100644 --- a/lib/DBIx/Class/Manual/FAQ.pod +++ b/lib/DBIx/Class/Manual/FAQ.pod @@ -571,4 +571,19 @@ default port of 5432. You can chance the port setting in C. +=item I've lost or forgotten my mysql password + +Stop mysqld and restart it with the --skip-grant-tables option. + +Issue the following statements in the mysql client. + + UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; + FLUSH PRIVILEGES; + +Restart mysql. + +Taken from: + +L. + =back