Pārlūkot izejas kodu

Reset mysql password

Bob Mottram 11 gadus atpakaļ
vecāks
revīzija
0e7d133104
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. 14
    0
      beaglebone.txt

+ 14
- 0
beaglebone.txt Parādīt failu

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*.
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
 ** MySql foo
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
 *** Backup all databases
7270
 *** Backup all databases
7257
 To back up all mysql databases:
7271
 To back up all mysql databases:
7258
 
7272