Skip to content

Knowledge Base

Connecting a website to your database

Where to enter your database details for common websites.


  • WordPress: set DB_NAME, DB_USER, DB_PASSWORD and DB_HOST in wp-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.

Please rate this article to help us improve our Knowledge Base.

0 0