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
Databasestab. - Enter a name for your new database in the
Create databasefield. - Select the collation for your database.
- Click
Create.
Step 4: Creating a New User
- Navigate to the
User accountstab. - 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
Importtab. - Click
Choose Fileand select the SQL file you want to import. - Configure any additional import settings if necessary.
- Click
Goto start the import process.
Step 6: Exporting Data
- Navigate to the
Exporttab. - Select the export method (e.g., Quick or Custom).
- Configure the export settings if necessary.
- Click
Goto 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, andImporttabs to manage the table.
Notes
- Ensure all paths and environment variables are updated in the
phpmyadmin.yamlfile. - 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.