F4 Panel 📖 User manual ไทยEN Sign in →

← All chapters

🗄 Databases

MySQL / MariaDB, PostgreSQL and SQLite — create, open phpMyAdmin, reset passwords, connect from code

What the page shows

The Databases page lists every database on the account in one table: which site owns it, its engine, its user, and the host/port to connect to — with a search box.

BadgeMeaning
primaryCreated with the site. It cannot be deleted here, but its password can be reset.
add-onCreated later, and can be deleted.

Add a database

1
Click “Add database” and choose the site it belongs to.
2
Type a suffix — the site-based prefix is added for you, e.g. example_com_shop.
3
Choose MySQL / MariaDB or PostgreSQL and create it.

Browse the data

EngineOpens in
MySQL / MariaDBThe phpMyAdmin button logs you in automatically — no password to type
PostgreSQLThe Adminer button
SQLiteIt is a file inside the site — open or download it from the file manager

Connecting from your code

Use the values from the table. The host is 127.0.0.1 — some frameworks treat localhost differently. For WordPress, in wp-config.php:

define('DB_NAME', 'example_com'); define('DB_USER', 'example_com'); define('DB_PASSWORD', 'รหัสที่ได้ตอนสร้าง / the password you were given'); define('DB_HOST', '127.0.0.1');

Lost the database password

Passwords are hidden after the one time they are shown. Use Reset pw on the site's primary database — a new password is set and displayed once.

⚠️ After resetting you must update the app config (e.g. wp-config.php), otherwise the site shows a database connection error.
← Previous🐙 Deploying from Git Next →🧩 The app installer
Every chapter
🚀 Getting started🌐 Creating & managing websites🛰 Pointing DNS at this server🔒 SSL / HTTPS certificates🌿 Subdomains & extra domains📁 File manager & code editor📡 FTP / FTPS🖥 SSH / SFTP and the web terminal🐙 Deploying from Git🗄 Databases🧩 The app installer⏰ Cron jobs — scheduled work🔌 API & integrations👤 Your account & security🧯 Common problems
F4 Panel · hosting control panel · developed by F4 Code