phpMyAdmin

elmar.cabrera48

New Member
Messages
3
Reaction score
0
Points
0
hello, I am new here, and i'm having problem with regards to implementing my codes because I need to connect to the database. I used "localhost" only as my host and root for my username for my database. And I have an error message on my codes. I guess I don't have the right host and username for my database.

My question is, What is the right host and username that I need to put on the db_host and db_user? I already created a username but I still have the same problem encountered?

Your help would be highly appreciated. Thank you!
 

Anna

I am just me
Staff member
Messages
11,758
Reaction score
586
Points
113
Host is localhost.
User name would be the one you created in cPanel, do note that your cPanel username is part of that database user name (and a part of the database name).
So if you create the user dbuser, and your cpanel username is mycpanel, the full database username would be mycpanel_dbuser (and similar for the database: mycpanel_dbname).
 
Top