|
@@ -7253,6 +7253,20 @@ Then visit your blog and reinstall it. Your existing content will be unaffected
|
7253
|
7253
|
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*.
|
7254
|
7254
|
|
7255
|
7255
|
** MySql foo
|
|
7256
|
+*** Reset the root password
|
|
7257
|
+To reset the root password, or if mysql forgets its root password.
|
|
7258
|
+
|
|
7259
|
+#+BEGIN_SRC: bash
|
|
7260
|
+/etc/init.d/mysql stop
|
|
7261
|
+mysqld_safe --skip-grant-tables &
|
|
7262
|
+mysql -u root
|
|
7263
|
+use mysql;
|
|
7264
|
+update user set password=PASSWORD("mynewpassword") where User='root';
|
|
7265
|
+flush privileges;
|
|
7266
|
+quit
|
|
7267
|
+/etc/init.d/mysql stop
|
|
7268
|
+/etc/init.d/mysql start
|
|
7269
|
+#+END_SRC
|
7256
|
7270
|
*** Backup all databases
|
7257
|
7271
|
To back up all mysql databases:
|
7258
|
7272
|
|