Comment utiliser phpMyAdmin pour gérer des bases de données
Qu'est-ce que phpMyAdmin
phpMyAdmin est un outil de gestion de bases de données open source largement utilisé, spécialement conçu pour gérer les bases de données MySQL et MariaDB. Il offre une interface utilisateur basée sur le Web, ce qui rend la gestion des bases de données plus intuitive et pratique. phpMyAdmin présente les avantages suivants :
- Polyvalent : Supporte la majorité des fonctionnalités de MySQL et MariaDB, telles que la gestion des bases de données, des tables, des champs, des relations, des index, des utilisateurs et des permissions.
- Convivial : Propose une interface graphique facile à utiliser, aidant les utilisateurs à effectuer diverses opérations de base de données de manière simple.
- Support multilingue : Supporte de nombreuses langues, ce qui le rend adapté aux utilisateurs du monde entier.
- Grande extensibilité : Supporte les plugins et les scripts d'extension, permettant aux utilisateurs de personnaliser selon leurs besoins.
Pour les développeurs, phpMyAdmin augmente non seulement l'efficacité du travail mais simplifie aussi la complexité de la gestion des bases de données.
Accéder à phpMyAdmin
ServBay inclut déjà phpMyAdmin, vous pouvez y accéder via l'adresse suivante : https://servbay.host/phpmyadmin
Utiliser phpMyAdmin pour gérer la base de données MariaDB (MySQL) incluse avec ServBay
Connexion au serveur
- Ouvrir le navigateur : Accédez à l'URL de phpMyAdmin.
- Entrer les informations de connexion : Saisissez les informations de connexion au serveur dans l'interface de connexion :
- Nom d'utilisateur et mot de passe : Disponibles dans 'Paramètres' - 'Base de données' dans ServBay.
- Serveur :
default
ou version spécifique.
- Connexion : Cliquez sur le bouton "Connexion" pour accéder à l'interface de gestion de la base de données.
Créer une base de données
- Accéder à l'interface de gestion des bases de données : Après vous être connecté, cliquez sur "Bases de données" dans le menu de gauche.
- Créer une nouvelle base de données :
- Dans la barre "Créer une base de données", saisissez le nom de la base de données.
- Choisissez le jeu de caractères (facultatif).
- Cliquez sur le bouton "Créer" pour créer la base de données.
Créer une table
- Sélectionner la base de données : Dans le menu de gauche, sélectionnez la base de données que vous venez de créer.
- Créer une table :
- Cliquez sur "Créer une table".
- Saisissez le nom de la table et les informations des champs (nom du champ, type, longueur, valeur par défaut, etc.).
- Cliquez sur le bouton "Enregistrer" pour créer la table.
Ajouter des données
- Sélectionner la table : Dans le menu de gauche, sélectionnez la table à manipuler.
- Insérer des données :
- Cliquez sur "Insérer".
- Saisissez les valeurs des données.
- Cliquez sur le bouton "Exécuter" pour enregistrer les données.
Interroger des données
- Sélectionner la table : Dans le menu de gauche, sélectionnez la table à manipuler.
- Parcourir les données :
- Cliquez sur "Parcourir" pour afficher les données de la table.
- Vous pouvez utiliser la fonction de requête pour filtrer les données.
Mettre à jour des données
- Sélectionner la table : Dans le menu de gauche, sélectionnez la table à manipuler.
- Éditer les données :
- Cliquez sur "Parcourir" pour afficher les données.
- Trouvez la ligne de données à éditer et cliquez sur l'icône "Éditer".
- Modifiez les valeurs des données.
- Cliquez sur le bouton "Exécuter" pour enregistrer les modifications.
Supprimer des données
- Sélectionner la table : Dans le menu de gauche, sélectionnez la table à manipuler.
- Supprimer des données :
- Cliquez sur "Parcourir" pour afficher les données.
- Sélectionnez la ligne de données à supprimer en cochant la case correspondante.
- Cliquez sur le bouton "Supprimer" pour confirmer la suppression.
Supprimer des tables
- Sélectionner la base de données : Dans le menu de gauche, sélectionnez la base de données contenant la table à supprimer.
- Supprimer des tables :
- Dans la vue de structure de la base de données, sélectionnez la table à supprimer.
- Cliquez sur le bouton "Supprimer".
- Confirmez l'opération de suppression.
Supprimer une base de données
- Sélectionner la base de données : Dans le menu de gauche, sélectionnez la base de données à supprimer.
- Supprimer la base de données :
- Cliquez sur l'onglet "Opérations".
- Faites défiler jusqu'en bas de la page et cliquez sur le bouton "Supprimer la base de données".
- Confirmez l'opération de suppression.
Grâce à ces étapes, vous pouvez facilement utiliser phpMyAdmin pour gérer la base de données MariaDB (MySQL) incluse avec ServBay. L'interface conviviale et les fonctionnalités puissantes de phpMyAdmin augmenteront considérablement votre efficacité en gestion de bases de données. Qu'il s'agisse de créer des bases de données, des tables, ou d'insérer, interroger, mettre à jour et supprimer des données, phpMyAdmin vous offrira une expérience de gestion simplifiée.