/    Sign up×
Community /Pin to ProfileBookmark

How can I connect to a remote mysql?

How can I connect to a remonte mysql? I tried changing “localhost” to my domain name but it didn’t worked. I was denied access to database.

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsJan 02.2005 — you need anywhere (%) access setup for a mysql user
Copy linkTweet thisAlerts:
@amahmoodauthorJan 04.2005 — [i]Originally posted by ShrineDesigns [/i]

[B]you need anywhere (%) access setup for a mysql user [/B][/QUOTE]


can I set it at CPanel or phpmyadmin? I couldn't find such a thing.
Copy linkTweet thisAlerts:
@ShrineDesignsJan 04.2005 — you can set it in cpanel or phpmyadmin
Copy linkTweet thisAlerts:
@sydelctJan 04.2005 — in cpanel, when you create a database user, you must put % instead of localhost when you create a user (or is it database?)

in phpmyadmin, if you can access the "mysql" database, you just have to edit the users table and change localhost to % then restart mysql.

i think that'll work.
Copy linkTweet thisAlerts:
@amahmoodauthorJan 04.2005 — [i]Originally posted by sydelct [/i]

[B]in cpanel, when you create a database user, you must put % instead of localhost when you create a user (or is it database?)



in phpmyadmin, if you can access the "mysql" database, you just have to edit the users table and change localhost to % then restart mysql.



i think that'll work. [/B]
[/QUOTE]


I'll try it. thanks sydelct and ShrineDesigns
Copy linkTweet thisAlerts:
@sydelctJan 05.2005 — tell us if it works. ?
Copy linkTweet thisAlerts:
@amahmoodauthorJan 06.2005 — [i]Originally posted by sydelct [/i]

[B]tell us if it works. ? [/B][/QUOTE]


Yes

it worked OK. Thank you.
×

Success!

Help @amahmood 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,
)...