phpMyAdmin Setup Guide - ajgillis04/GillisDockerDepot GitHub Wiki
phpMyAdmin Setup Guide
Introduction
phpMyAdmin is a free and open-source administration tool for MySQL and MariaDB. It provides a user-friendly web interface for managing your databases.
Prerequisites
- Docker installed
- phpMyAdmin container running in your Docker stack
- MySQL or MariaDB configured and running
Configuration Steps
Step 1: Accessing the phpMyAdmin UI
- Open your browser and navigate to
http://<your-ip-address>:8080
. - Log in with your MySQL or MariaDB credentials.
Step 2: Initial Setup
- After logging in, you will be directed to the phpMyAdmin dashboard.
- Familiarize yourself with the interface, including the sidebar for navigating databases and tables.
Step 3: Creating a New Database
- Click on the
Databases
tab. - Enter a name for your new database in the
Create database
field. - Select the collation for your database.
- Click
Create
.
Step 4: Creating a New User
- Navigate to the
User accounts
tab. - Click
Add user account
. - Enter the user details (username, host, password).
- Under
Database for user account
, selectCreate database with same name and grant all privileges
. - Click
Go
.
Step 5: Importing Data
- Navigate to the
Import
tab. - Click
Choose File
and select the SQL file you want to import. - Configure any additional import settings if necessary.
- Click
Go
to start the import process.
Step 6: Exporting Data
- Navigate to the
Export
tab. - Select the export method (e.g., Quick or Custom).
- Configure the export settings if necessary.
- Click
Go
to download the SQL file.
Step 7: Managing Tables
- Select a database from the sidebar.
- Click on a table to view and manage its structure and data.
- Use the
Structure
,SQL
,Search
,Insert
,Export
, andImport
tabs to manage the table.
Notes
- Ensure all paths and environment variables are updated in the
phpmyadmin.yaml
file. - Regularly backup your databases to prevent data loss.
Troubleshooting
- Common Issues: List common issues and solutions.
- Logs: Check phpMyAdmin logs for error messages.
- Support: Link to the phpMyAdmin community and support resources.