Showing results for 
Show  only  | Search instead for 
Did you mean: 

[MYSQL - Cpanel] How to find MYSQL server / host details

Greetings. I'm trying to fix this issue with connecting to my MYSQL database.


So, basically, I'm trying to find the hostname/host / or server what people call it.


Here how's it formatted:


Config:: Set('mysql_server', 'THIS IS WHAT IM LOOKING FOR');
Config:: Set('mysql_port', 3306);
Config:: Set('mysql_user', 'username');
Config:: Set('mysql_pw', 'password');
Config:: Set('mysql_db', 'dbname');


Hi @JustPanIk, thanks for posting.

If you are using cPanel hosting, your database hostname will be 'localhost'.

If you are using a different hosting service, the hostname will be listed in the details of your database.


Gary - GoDaddy | Community Moderator
24/7 Support | Check System Status