+ 2

Web developers, i uploaded a website but don't know how to the host to use for my online database.

The database is in my cpanel but i don't know how to connect to it from my website. What host will i use for it so that i will be able to connect to it? Is it going to be localhost, the website domain name or what else?

23rd Oct 2019, 5:39 PM
Joseph Onipede
Joseph Onipede - avatar
1 Antwort
0
You should always connect to mysql using localhost. Usually mysql doesn’t even accept connections outside localhost by default for security reasons. Username and password depends on the host provider.
23rd Oct 2019, 7:34 PM
Toni Isotalo
Toni Isotalo - avatar