/    Sign up×
Community /Pin to ProfileBookmark

can connect through localhost but not ip

Hi,

What does it mean if i can connect through localhost but cant connect through ip.

I dont get an error just hangs?

My username is set to user@localhost, i cant seem to get it to any (user@%)

But does that make a difference?

** edit { just to make it clear, it is to my mysql server

Thanks
k0r54

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@chazzyDec 21.2005 — do you have any blocked settings via my.cnf?
Copy linkTweet thisAlerts:
@NogDogDec 21.2005 — the user name should be a database user defined for your mysql database, not a login user. I don't believe mysql users can have a '@' in the name (but i'm not positive about that).
Copy linkTweet thisAlerts:
@k0r54authorDec 21.2005 — well, i am not entirly sure. You see it is my hostin company, (small place) they are running plesk?
Copy linkTweet thisAlerts:
@chazzyDec 21.2005 — if this is through a hosting company and they tell you to use localhost then use localhost. they have their own configuration to try to block out unauthorized access.
Copy linkTweet thisAlerts:
@k0r54authorDec 21.2005 — yeah, they r trying to sort it out aswell.

I need to use ip for what im doing ?.

Bit of a pain
Copy linkTweet thisAlerts:
@chazzyDec 22.2005 — why do you need to use IP? why is your script dependent on an ip address? have you tried it with 127.0.0.1?
Copy linkTweet thisAlerts:
@bathurst_guyDec 22.2005 — your server may have a router or firewall blocking port 3306, so no external computers may access MySQL
×

Success!

Help @k0r54 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...