04-03-2022

This commit is contained in:
2022-03-04 17:56:50 +01:00
parent e6fc2251ec
commit 5b45dc0863
70 changed files with 3189 additions and 673 deletions

View File

@@ -51,7 +51,7 @@ et donner les privilèges à un utilisateur (existant) sur cette base:
MariaDB [(none)]> GRANT ALL ON bdd.* TO 'theuser'@'localhost';
Query OK, 0 rows affected (0.021 sec)
MariaDB [(none)]> FLUSH PRIVILEGES
MariaDB [(none)]> FLUSH PRIVILEGES;
```
ou à un utilisateur qui n'existe pas encore:
@@ -60,7 +60,7 @@ ou à un utilisateur qui n'existe pas encore:
MariaDB [(none)]> GRANT ALL ON bdd.* TO 'matrix'@'localhost' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.030 sec)
MariaDB [(none)]> FLUSH PRIVILEGES
MariaDB [(none)]> FLUSH PRIVILEGES;
```
L'utilisateur 'matrix' sera crée.

View File

@@ -40,3 +40,5 @@ MariaDB [(none)]> SELECT VERSION(), CURRENT_DATE;
[:fa-link: http://apple.stackexchange.com/questions/255671/error-mysql-server-pid-file-could-not-be-found](http://apple.stackexchange.com/questions/255671/error-mysql-server-pid-file-could-not-be-found)

View File

@@ -86,7 +86,7 @@ note : The storage engine for the table doesn't support repair
Pour les tables InnoDB, il faut [forcer la récupération](https://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html):
1) Arrêter **mysqld**:
2) Sauvegarder **mysql**:
```bash
@@ -99,7 +99,7 @@ Pour les tables InnoDB, il faut [forcer la récupération](https://dev.mysql.com
3) Ajouter au fichier de configuration MySQL my.cnf:
```
```ini
#osx (Homebrew): /usr/local/etc/my.cnf
[mysqld]
@@ -127,11 +127,11 @@ $ mysqldump -A -u root -ppassword > '/tmp/dump.sql';
```
6) Parfois cela peut suffire. Sinon,
7) Supprimer les tables / bases corrompues (DROP ...)
8) Arrêter **mysqld**:
9) Supprimer les ib*:
```bash
@@ -150,7 +150,7 @@ $ mysqldump -A -u root -ppassword > '/tmp/dump.sql';
```
11) Redémarrer **mysqld**:
12) Restaurer les bases:
```bash