Knowledge Base
Connecting a website to your database
Where to enter your database details for common websites.
- WordPress: set
DB_NAME,DB_USER,DB_PASSWORDandDB_HOSTinwp-config.php. - Other PHP apps: use the details in the app's config file.
- Web hosting: use the database you made in DirectAdmin, with host
localhost, see Creating a database for your website. - Zettako Panel database: use the host and port from the panel.
Always keep passwords out of public repositories.
Errors? See Troubleshooting database connection errors.