MySQLMariaDB » Historique » Version 7
  Patrice Nadeau, 2018-04-15 14:57 
  
| 1 | 7 | Patrice Nadeau | # MySQL / MariaDB  | 
|---|---|---|---|
| 2 | 1 | Patrice Nadeau | |
| 3 | Logiciel de base de données  | 
||
| 4 | |||
| 5 | ----  | 
||
| 6 | |||
| 7 | {{toc}} | 
||
| 8 | |||
| 9 | 7 | Patrice Nadeau | ## Installation  | 
| 10 | 1 | Patrice Nadeau | |
| 11 | 7 | Patrice Nadeau | ```bash  | 
| 12 | 6 | Patrice Nadeau | sudo zypper install mariadb php5-mysql  | 
| 13 | sudo systemctl enable mysql.service  | 
||
| 14 | 1 | Patrice Nadeau | sudo systemctl start mysql.service  | 
| 15 | 7 | Patrice Nadeau | ```  | 
| 16 | 1 | Patrice Nadeau | |
| 17 | Sécuriser l’installation  | 
||
| 18 | 7 | Patrice Nadeau | |
| 19 | 1 | Patrice Nadeau | > L’usager root utilisés ici est celui de MariaDB et non celui de openSUSE.  | 
| 20 | 7 | Patrice Nadeau | |
| 21 | 1 | Patrice Nadeau | > Par défaut, il n’y as pas de mot de passe.  | 
| 22 | 7 | Patrice Nadeau | |
| 23 | ```bash  | 
||
| 24 | 1 | Patrice Nadeau | mysql_secure_installation  | 
| 25 | 7 | Patrice Nadeau | ```  | 
| 26 | 1 | Patrice Nadeau | |
| 27 | Pare-feu  | 
||
| 28 | 7 | Patrice Nadeau | |
| 29 | 1 | Patrice Nadeau | > Ouvrir seulement si la base de données doit être accessible par une autre machine que le serveur lui-même  | 
| 30 | 7 | Patrice Nadeau | |
| 31 | ```bash  | 
||
| 32 | 6 | Patrice Nadeau | sudo yast firewall services add service=service:mysql zone=EXT  | 
| 33 | 7 | Patrice Nadeau | ```  |