+ 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?
2 ответов
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.