Database & MySQL Help
What are the MariaDB connection details for my script?
Asked by Priya Mishra
July 10, 2025
I'm writing a custom PHP script and need to connect to my database. What should I use for the hostname, username, and password?
1 Answer(s)
Community Support
Jul 10, 2025 at 10:45 AM
Hi Priya, for any local script running on the server, you should always use `localhost` as the database hostname for the best performance and security. The username and password will be the ones you created for your database in the "MariaDB Databases" section of SoftPanel Pro.
Your Answer
Please log in to post an answer.