If you have access to a phpMyAdmin instance (via weak credentials or misconfiguration), several vectors can lead to a full compromise:
Older versions of phpMyAdmin are famous for LFI vulnerabilities. phpmyadmin hacktricks
Knowing the absolute web path is critical for many exploits. Common methods include: Checking phpinfo() pages if accessible. If you have access to a phpMyAdmin instance
6.4. Network Monitoring