Files
varlog/_cache/articles/a9d84ffa-4380-4348-887c-d8aad9f940bc.json
T
2026-05-15 10:37:48 +02:00

1 line
2.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"uuid":"a9d84ffa-4380-4348-887c-d8aad9f940bc","slug":"installer","title":"Installer MariaDB","author":"cedric@abonnel.fr","published":true,"published_at":"2023-02-10 22:48:32","created_at":"2023-02-10 22:48:32","updated_at":"2023-02-10 22:48:32","revisions":[],"cover":"","files_meta":[],"external_links":[],"seo_title":"","seo_description":"","og_image":"","category":"Informatique","content":"# Installer MariaDB\n\nL'installation de *MariaDB* se distingue par l'installation de la partie serveur appelée `mariadb-server` et la partie cliente nommée `mariadb-client`.\n\n```BASH\nsudo apt install mariadb-client mariadb-server\n```\n\nSécuriser l'installation avec la commande suivante :\n\n```\nsudo mysql_secure_installation\n```\n\nLes réponses à saisir sont les suivantes :\n```\nEnter current password for root (enter for none):\n# Par défaut ce n'est rien (none). Ne rien saisir et appuyer sur la touche Entrée\n\nSet root password? [Y/n] =>\n# Y\n\nNew password: \n# Saisir un nouveau mot de passe\n\nRe-enter new password: \n# Saisir un nouveau mot de passe\n\nRemove anonymous users? [Y/n] \n# Y\n\nDisallow root login remotely? [Y/n] \n# Y\n\nRemove test database and access to it? [Y/n]\n# Y\n\nReload privilege tables now? [Y/n] \n# Y\n```\n\n## Vérifier que le service soit opérationnel\nVous pouvez vérifier le bon fonctionnement de votre service en tapant la commande suivante :\n\n sudo systemctl status mariadb\n \n![réponse à la commande sudo systemctl status mariadb](20200503-171809.png)\n\n## Vérifier la connectivité avec root\nVous pouvez vérifier en ligne de commande le service :\n\n mysql -uroot -p\n \nRésultat :\n```\nWelcome to the MySQL monitor. Commands end with ; or \\g.\nYour MySQL connection id is 43\nServer version: 5.5.55-0+deb8u1 (Debian)\n\nCopyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.\n\nOracle is a registered trademark of Oracle Corporation and/or its\naffiliates. Other names may be trademarks of their respective\nowners.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql>\n```\n\nSi vous n'arrivez pas à vous connecter, suivant le guide \n\nUne fois connecté tapez la commande :\n\n```sql\nSHOW DATABASES;\n```\n\nVous obtiendrez le résultat suivant :\n\n```\n+--------------------+\n| Database |\n+--------------------+\n| information_schema |\n| --- |\n| mysql |\n| performance_schema |\n+--------------------+\n3 rows in set (0.00 sec)\n```\n\n## voir aussi\n[Installation dun serveur MariaDB ou MySQL en une ligne de commande sous Linux Debian](https://www.christophe-casalegno.com/installation-dun-serveur-mariadb-ou-mysql-en-une-ligne-de-commande-sous-linux-debian/)","featured":false,"tags":[]}