phpMyAdmin is a web-based application that helps users manage MySQL or MariaDB databases through a graphical interface. With it, you can view tables, run SQL queries, create new databases if you have permission, and import and export data. This guide prioritizes learning or staging environments; changes to a production database should only be made after a backup, permissions check, and recovery plan.
This article covers how to familiarize yourself with the phpMyAdmin menu, create a database, view an example of CREATE TABLE, import data, and export a backup. For basic SQL commands, read the MySQL database guide via CMD and Linux before attempting any operations that modify data.
What Is phpMyAdmin and When to Use It?

phpMyAdmin is not a database server itself. The database is stored and processed by MySQL or MariaDB, while phpMyAdmin is a management client that sends commands to the server. This distinction is important when choosing a hosting service for dynamic websites such as database-driven websites.
Useful features for beginners
- Observe the list of databases and tables allowed for the account.
- Examine column structures, indexes, and sample data.
- Run
SELECTqueries for learning without modifying the data. - Create tables and import SQL files in a test environment.
- Export a copy of the database as a form of backup, which still needs to be tested for recovery.
Using applications for WordPress sites is easier to understand if you know how the WordPress CMS works and the differences between application code and content data. Official documentation is available at phpMyAdmin documentation.
Preparation Before Entering phpMyAdmin
Use a local or staging installation if you’re still learning. phpMyAdmin can be provided by your hosting provider or installed in an environment like XAMPP, but don’t assume a public URL without authentication is secure. Choose HTTPS when remote, restrict access by role, use strong passwords, and keep your software updated.
For Windows labs, historical XAMPP tutorial And WordPress installation guide helps understand the relationship between web servers, PHP, and databases. The menu steps in old screenshots may differ from the current version of the application. The main download source is official phpMyAdmin site.
Getting to Know the phpMyAdmin Dashboard

The navigation panel usually displays the servers, accessible databases, and tables. Menus such as Structure, SQL, Search, Import, And Export Works according to account permissions and software version. If a specific menu isn’t present, don’t immediately change user permissions on the production server; contact the administrator.
Draft database query helps explain why the command SELECT are different from commands that modify the structure. Understand the differences between read-only, update, delete, and schema change operations before executing them.
1. How to Create a Database with phpMyAdmin

- Sign in using an account with appropriate permissions on the local or staging system.
- Open menu Databases or the available database creation button.
- Choose a clear test database name, then a collation/character set that suits the application’s needs.
- Confirmation of database creation and verification is visible in the navigation.
- If the account is not authorized
CREATE DATABASE, use the hosting panel or ask the administrator to set up the database.
When creating a website, the database name, username, and password are all separate matters. Follow minimum access practices and do not share credentials in public tutorials. Read on. WordPress plugin guide so that plugin changes that utilize the database are not made without a backup.
SQL example to create a test table
The original article uses examples CREATE TABLE following, maintained as a historical example. Run only on an empty training database. Note that the column tanggaldaftarpengunjung use ON UPDATE CURRENT_TIMESTAMP, so that the value can change when the row is updated; this is not appropriate when a permanent registration date is needed.
CREATE TABLE Pengunjung ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, namadepanpengunjung VARCHAR(30) NOT NULL, namabelakangpengunjung VARCHAR(30) NOT NULL, emailpengunjung VARCHAR(50), tanggaldaftarpengunjung TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );
If your goal is to store an unchanging creation time, define a column like created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP without an ON UPDATE clause for that column. For other SQL, see MySQL 8.4 CREATE TABLE documentation and example of creating a table in PHP. Do not run DROP or any destructive commands on an active WordPress database.
2. How to Import a Database in phpMyAdmin

- Create a new backup and check that the import destination is not the production database currently in use.
- Select the destination database, go to the Import tab, and specify a valid SQL file.
- Check the file size, encoding, and relevant import settings.
- Run the import and examine the output message, table structure, and sample data.
- If a failure occurs, do not repeat the import multiple times without checking that some of the data has been imported.
Imports can overwrite or create tables and can fail due to version differences. server or access rights. For a live migration, coordinate with the WordPress hosting migration guide and test on a staging site first.
3. How to Export a Database for Backup

Select the correct database and use the Export menu. Quick mode is usually suitable for simple exports, while custom mode gives you the option to choose tables and formats. Store backup files in a secure location, restrict access, and do not upload SQL files containing user data to public locations.
A backup is not guaranteed to be successful simply because the files are downloaded. Test the restore process in an isolated environment and note the time and database version. For automated backups, see the mysqldump and cron guide, which should be adjusted based on security and server version.
Security, Common Errors, and Support Tools
| Problem | Safe steps |
|---|---|
| Access denied | Check permissions; do not force the public root account |
| Import too large | Evaluate server limits; Use the appropriate admin process |
| Table is not visible | Check the selected database and user permissions |
| Characters are corrupted | Check encoding before re-importing |
| Backup cannot be restored | Test the file in an isolated environment, check the version |
For more extensive learning, see basics of coding, website programming languages, and understanding frameworks. Understanding technical SEO can help identify the impact of database issues on websites and crawlers, but it does not replace the work of a server administrator.
The historical material linked to the original post about MySQL 5.7 system variables remains available for legacy readers, but MySQL 5.7 has passed its mainstream support period; do not reference new production configurations.
Frequently Asked Questions (FAQ)
What is phpMyAdmin?
It is a web-based interface for managing MySQL or MariaDB databases, not the database server itself.
Is phpMyAdmin free?
phpMyAdmin is open-source software, but its hosting environment or support services may require a fee.
Is it permissible to access phpMyAdmin over the internet?
Only with appropriate security and access restrictions; Avoid unauthenticated public endpoints.
How to create a new database?
Use the Databases menu if your account has permission, or ask your hosting administrator/panel to set it up.
Can phpMyAdmin be used with WordPress?
Yes, if the server uses MySQL or MariaDB, but WordPress data changes should follow backup and validation procedures.
What’s the difference between import and export?
Importing inserts data or schemas from a file into the server; exporting creates a copy of the data or schema from the database.
Is the exported SQL file definitely restoreable?
No. The success of a backup should be tested with a safe restore in a test environment.
What is the CREATE TABLE command?
It creates a new table structure in a database with appropriate permissions.
Is it safe to run SQL over the internet?
Don’t run scripts you don’t understand, especially ones that modify or delete data.
Why might an import fail?
Causes can include file format, size, timeout, permissions, table conflicts, or server version incompatibilities.
Does phpMyAdmin replace automatic backups?
No. Manual export is one tool, but a backup plan should be tested, scheduled, and stored securely.
External References
- phpMyAdmin Documentation — Introduction
- Official phpMyAdmin Site
- MySQL 8.4 — CREATE TABLE
- MySQL 5.7 — historical reference (original link)