MySQL database location?

Status
Not open for further replies.

bl4ckb0x

New Member
Messages
4
Reaction score
0
Points
0
I have made new database in cPanel and one table in it. Now i don't know what is the database host (e.g. newdatabase.bl4ckb0x.exofire.net, or bl4ckb0x.exofire.net/newdatabase or where?)


Please help, i know it's plain simple, but i'm pretty new at this. Thanks !! :happysad:
 

bl4ckb0x

New Member
Messages
4
Reaction score
0
Points
0
I'm sorry, but i don't understand really. I know localhost is x10hosting server, but let's assume, someone want to connect to my database.
What must he type in address bar? (database name: bl4ckb0x_power, normal site domain: bl4ckb0x.exofire.net or bl4ckb0x.x10hosting.com)

Thanks
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
You can't connect directly to a database by typing something into the address bar.
If you want someone to be able to see the contents of your database then you would need to upload a script that will read the contents of your database and then display it on your website. In which case the URL would be the URL of your website.

Did that answer your question?
 

bl4ckb0x

New Member
Messages
4
Reaction score
0
Points
0
Yes, thanks, it's more clear to me now. Still i have a direct question about this:

"Set MySQL database variables" - You will find four variables that you need to fill out.

$online_db_host = "yourHost ( ex . mysql.domain.com )";
$online_db_name = "yourDatabaseName ( ex . Registration )";
$online_db_user = "yourUser ( user for the database ) ";
$online_db_pass = "yourPass ( password to the database )";

I have some script and i need to configure it. So in this case what do i type for
$online_db_host ? just my standard domain e.g. bl4ckb0x.exofire.net or what?

Thanks for patience!
 
Status
Not open for further replies.
Top