1er commit
De la docs au format Mkdocs
This commit is contained in:
31
docs/MySQL/Expired-root-Password.md
Normal file
31
docs/MySQL/Expired-root-Password.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# Reset Expired root Password for MySQL 5.7 on Mac OS X
|
||||
|
||||
1. Arrêter MySQL (PrefPane)
|
||||
|
||||
```bash
|
||||
$ sudo su
|
||||
$ sudo mysqld_safe –skip-grant-tables
|
||||
```
|
||||
|
||||
2. Dans un autre terminal: (MySQL 5.7)
|
||||
|
||||
```bash
|
||||
sh-3.2# mysql -u root
|
||||
mysql> UPDATE mysql.user SET authentication_string=PASSWORD('password') WHERE user='root';
|
||||
mysql> FLUSH PRIVILEGES;
|
||||
```
|
||||
|
||||
ou (MySQL 5.6)
|
||||
|
||||
```bash
|
||||
sh-3.2# mysql -u root
|
||||
mysql> FLUSH PRIVILEGES;
|
||||
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
|
||||
```
|
||||
|
||||
3. Se connecter avec le nouveau password:
|
||||
|
||||
```bash
|
||||
$ mysql -u root -p Enter password:
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user