Direct link or path to MySQL Database

Status
Not open for further replies.

stanyy

New Member
Messages
21
Reaction score
0
Points
1
Hi everyone. How can I obtain the direct path to my database? For example what I type into my server location is 'localhost'. I would like to change it to my actual database path. I'm on Absolut (starka)
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
Only localhost will work, free hosting is setup to not allow connections that comes from outside of our servers, meaning you wont be able to connect from your home computer for instance.
 

stanyy

New Member
Messages
21
Reaction score
0
Points
1
What about specifically using my x10hosting server ip or 127.0.0.1 ?
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Are you trying to access the database from outside of your x10 account?
 

stanyy

New Member
Messages
21
Reaction score
0
Points
1
No. Sorry i'm a noob and not very familiar with the appropriate terms to use.
What i want to do is to replace 'localhost' with something more specific.
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
localhost is the most specific thing to use. Using anything else will probably not work.

Technical reason for those wondering: If you attempt to connect to MySQL using an IP address, it will use the network TCP/IP stack to communicate, whereas if you specify exactly "localhost" it will use a unix socket file instead. If the servers are configured to disable network connections (haven't checked, but it is a possibility), that means using an IP (even 127.0.0.1) will fail to connect, whereas using "localhost" will work properly.
 
Last edited:
Status
Not open for further replies.
Top