PHP, MySQL Database Connection Problem

pl0tted

Registered
Jan 18, 2009
1
0
51
Guys, im new here, i have a question, im setting up my php script to connect to mysql db, i need to supply values to these variables: hostname, user, database, where can i find these information in cpanel? Thanks in advance
 

JawadArshad

Well-Known Member
PartnerNOC
Apr 8, 2008
459
6
68
PK
cPanel Access Level
DataCenter Provider
Guys, im new here, i have a question, im setting up my php script to connect to mysql db, i need to supply values to these variables: hostname, user, database, where can i find these information in cpanel? Thanks in advance
hostname should be localhost, user should be the database user that you create from cPanel under "cPanel >> Databases >> MySQL Databases" and database should also be the name of the database that you create from this cPanel tab.