🐬
Hosting

Complete phpMyAdmin Guide: Managing MySQL via Web Interface

25.04.2030
← All articles

phpMyAdmin is an open-source tool for managing MySQL and MariaDB databases through a browser web interface. Created by Tobias Ratschiller in 1998, today around 4 million sites worldwide use phpMyAdmin. It's included by default in cPanel, ISPmanager, and other hosting panels.

Main functions

Databases β€” create new DBs, manage existing ones, drop. Tables β€” create tables in each DB, view schema, add/edit/delete data.

SQL query β€” write and run custom SQL: SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, and more. The most powerful function β€” if you know SQL you can do anything.

Import and Export β€” download the DB as .sql (for backups) or upload (import from another DB). CSV, JSON, XML are also supported.

Users β€” create DB users, grant permissions (SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER). Creating a dedicated DB user per site is good security practice.

Designer β€” visually draw table relationships (ER diagram). Useful for large database projects.

WordPress DB backup

The easiest way to back up WordPress via phpMyAdmin: select DB β†’ Export β†’ choose "Quick" or "Custom" (Custom lets you pick SQL format and zipped compression), click Download. Restore: Import β†’ select file β†’ Go.

Custom query examples

Find all draft posts in WordPress: SELECT * FROM wp_posts WHERE post_status = 'draft';

Count the most active authors: SELECT post_author, COUNT(*) AS post_count FROM wp_posts WHERE post_status='publish' GROUP BY post_author ORDER BY post_count DESC;

Delete old revisions (clean WordPress DB): DELETE FROM wp_posts WHERE post_type = 'revision';

Security

Exposing phpMyAdmin directly is dangerous β€” bots find /phpmyadmin URLs and brute force them. Solutions: (1) Access through cPanel (auth via cPanel); (2) Change the URL (not /phpmyadmin but /db-admin-xyz); (3) IP whitelist via .htaccess; (4) Enable 2FA (available in phpMyAdmin Plus plugins).

Sayt.uz practice

On Sayt.uz hosting plans phpMyAdmin is auto-connected via cPanel β€” clients don't need to remember a URL. 84% of clients use phpMyAdmin at least once a month. Most-used functions: SQL query (49%), Export backup (38%), table viewing and editing (76%). Tip: phpMyAdmin is fast and easy, but for huge queries (1M+ rows) use the command-line mysql client β€” the browser may crash.

Related articles

πŸ’° Hosting Price Comparison: Uzbek and International Providers πŸ“‘ Server Monitoring Tools: Prometheus, Grafana, Datadog, and More 🌐 Edge Computing Hosting: Moving Compute Closer to Users 🏒 Colocation Server: Placing Your Own Hardware in a Data Center
🌐 Language
πŸ‡ΊπŸ‡Ώ O'zbek πŸ‡ΊπŸ‡Ώ ЎзбСк πŸ‡·πŸ‡Ί Русский πŸ‡¬πŸ‡§ English βœ“