diff --git a/beaglebone.txt b/beaglebone.txt index dffd911f..dc7f3c7f 100644 --- a/beaglebone.txt +++ b/beaglebone.txt @@ -7253,6 +7253,20 @@ Then visit your blog and reinstall it. Your existing content will be unaffected If you need to import blog posts from another blog then copy the *fp-content/content* directory from the old blog to the new blog, then within the admin panel select *maintain* and *rebuild index*. ** MySql foo +*** Reset the root password +To reset the root password, or if mysql forgets its root password. + +#+BEGIN_SRC: bash +/etc/init.d/mysql stop +mysqld_safe --skip-grant-tables & +mysql -u root +use mysql; +update user set password=PASSWORD("mynewpassword") where User='root'; +flush privileges; +quit +/etc/init.d/mysql stop +/etc/init.d/mysql start +#+END_SRC *** Backup all databases To back up all mysql databases: