phpMyAdmin adalah aplikasi berbasis web yang digunakan untuk mengelola database MySQL/MariaDB melalui browser.
Panduan ini ditujukan untuk administrator server, guru TIK,
dan pemula yang ingin mengelola database secara visual.
Spesifikasi & Persyaratan
- Ubuntu Server 20.04 / 22.04 LTS
- Akses root atau sudo
- Apache Web Server
- PHP 8.x
- MySQL atau MariaDB
- Koneksi internet
Langkah 1: Update Sistem
sudo apt update && sudo apt upgrade -y
Langkah 2: Install Apache Web Server
sudo apt install apache2 -y
sudo systemctl enable apache2
sudo systemctl start apache2
Langkah 3: Install MySQL / MariaDB
sudo apt install mysql-server -y
sudo mysql_secure_installation
Langkah 4: Install PHP dan Ekstensi
sudo apt install php php-mbstring php-zip php-gd php-json
php-curl php-mysql -y
Langkah 5: Install phpMyAdmin
sudo apt install phpmyadmin -y
Saat instalasi:
- Pilih apache2 (gunakan spasi lalu Enter)
- Pilih Yes untuk dbconfig-common
- Masukkan password MySQL root
Langkah 6: Konfigurasi Apache phpMyAdmin
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
sudo systemctl restart apache2
Langkah 7: Akses phpMyAdmin
Buka browser:
http://IP_SERVER/phpmyadmin
Login menggunakan user MySQL.
Langkah 8: Membuat User Database (Disarankan)
sudo mysql
CREATE USER 'adminuser'@'localhost' IDENTIFIED BY 'passwordku'; GRANT ALL PRIVILEGES ON *.* TO 'adminuser'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES; EXIT;
Langkah 9: Keamanan phpMyAdmin
1. Ganti URL folder
2. Gunakan autentikasi .htaccess
3. Batasi akses IP
4. Aktifkan HTTPS (SSL)
Troubleshooting Umum
- Error 404: pastikan symlink phpMyAdmin aktif
- Error 500: cek modul PHP
- Login gagal: cek user dan privilege MySQL
