Come utilizzare phpMyAdmin per gestire il database
Che cos'è phpMyAdmin
phpMyAdmin è uno strumento open-source ampiamente utilizzato per la gestione dei database, specificamente progettato per la gestione dei database MySQL e MariaDB. Offre un'interfaccia utente basata sul web, rendendo la gestione dei database più intuitiva e conveniente. phpMyAdmin presenta i seguenti vantaggi significativi:
- Multifunzionalità: Supporta la maggior parte delle funzionalità di MySQL e MariaDB, come la gestione di database, tabelle, campi, relazioni, indici, utenti e permessi.
- Facilità d'uso: Offre un'interfaccia grafica facile da usare, aiutando gli utenti a eseguire facilmente diverse operazioni sui database.
- Supporto multilingue: Supporta diverse lingue, rendendolo adatto agli utenti di tutto il mondo.
- Alta espandibilità: Supporta plugin e script di estensione, gli utenti possono personalizzarlo secondo le proprie esigenze.
Per gli sviluppatori, phpMyAdmin non solo aumenta l'efficienza lavorativa ma semplifica anche la complessità della gestione dei database.
Accesso a phpMyAdmin
ServBay include phpMyAdmin, è possibile accedervi al seguente indirizzo: https://servbay.host/phpmyadmin
Utilizzo di phpMyAdmin per gestire il database MariaDB (MySQL) integrato in ServBay
Accesso al server
- Aprire il browser: Accedere all'URL di phpMyAdmin.
- Inserire le informazioni di connessione: Nella schermata di accesso inserire le informazioni di connessione al server:
- Nome utente e password: Si possono ottenere in "Impostazioni" - "Database" su ServBay.
- Server:
default
oppure una versione specifica.
- Accesso: Fare clic sul pulsante "Accedi" per entrare nell'interfaccia di gestione del database.
Creazione del database
- Entrare nell'interfaccia di gestione del database: Dopo l'accesso, fare clic su "Database" nel menu a sinistra.
- Creare un nuovo database:
- Inserire il nome del database nel campo "Crea nuovo database".
- Scegliere il set di caratteri (opzionale).
- Fare clic sul pulsante "Crea" per creare il database.
Creazione della tabella
- Selezionare il database: Nel menu a sinistra, selezionare il database appena creato.
- Creazione della tabella:
- Fare clic su "Crea tabella".
- Inserire il nome della tabella e i campi relativi (come nome del campo, tipo, lunghezza, valore predefinito, ecc.).
- Fare clic su "Salva" per creare la tabella.
Inserimento dei dati
- Selezionare la tabella: Nel menu a sinistra, selezionare la tabella su cui operare.
- Inserire i dati:
- Fare clic su "Inserisci".
- Inserire i valori dei dati.
- Fare clic su "Esegui" per salvare i dati.
Interrogazione dei dati
- Selezionare la tabella: Nel menu a sinistra, selezionare la tabella su cui operare.
- Visualizza dati:
- Fare clic su "Sfoglia" per visualizzare i dati nella tabella.
- È possibile utilizzare la funzione di interrogazione per filtrare i dati.
Aggiornamento dei dati
- Selezionare la tabella: Nel menu a sinistra, selezionare la tabella su cui operare.
- Modifica dati:
- Fare clic su "Sfoglia" per visualizzare i dati.
- Trovare la riga di dati da modificare e fare clic sull'icona di modifica.
- Modificare i valori dei dati.
- Fare clic su "Esegui" per salvare le modifiche.
Eliminazione dei dati
- Selezionare la tabella: Nel menu a sinistra, selezionare la tabella su cui operare.
- Eliminare i dati:
- Fare clic su "Sfoglia" per visualizzare i dati.
- Selezionare le righe di dati da eliminare, spuntando le caselle corrispondenti.
- Fare clic sul pulsante "Elimina" per confermare l'eliminazione.
Eliminazione della tabella
- Selezionare il database: Nel menu a sinistra, selezionare il database che contiene la tabella da eliminare.
- Eliminare la tabella:
- Nella visualizzazione della struttura del database, selezionare la tabella da eliminare.
- Fare clic sul pulsante "Elimina".
- Confermare l'operazione di eliminazione.
Eliminazione del database
- Selezionare il database: Nel menu a sinistra, selezionare il database da eliminare.
- Eliminare il database:
- Fare clic sulla scheda "Operazioni".
- Scorrere fino in fondo alla pagina e fare clic sul pulsante "Elimina database".
- Confermare l'operazione di eliminazione.
Seguendo questi passaggi, è possibile utilizzare facilmente phpMyAdmin per gestire il database MariaDB (MySQL) integrato in ServBay. L'interfaccia user-friendly e le potenti funzionalità di phpMyAdmin aumenteranno notevolmente l'efficienza nella gestione dei database. Che si tratti di creare database, tabelle, o di inserire, interrogare, aggiornare ed eliminare dati, phpMyAdmin offre un'esperienza operativa conveniente.