AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   How to connect to MySQL through internet? (https://forums.alliedmods.net/showthread.php?t=93038)

Rirre 05-23-2009 14:21

How to connect to MySQL through internet?
 
I have to use Internet IP as host now since I have 2 rackservers (not located in same area).
Have use "amx_sql_host 127.0.0.1" a long time now without any problems on the 1st server I got.
But this time I have 2 rackservers and want the 2nd to connect & use same MySQL/database over the Internet since I have AMXBans installed on the 1st one.
How can I do this?
I have try Google, found most Linux users and older version of MySQL and threads which haven't been answered. I'm a Windows user.
EDIT: I'm using PhpMyAdmin.
I have setup a user (admin) in PhpMyAdmin which I want to use in amxmodx/configs/sql.cfg file.
[IMG]http://img132.**************/img132/3927/65921753.jpg[/IMG]

But I just get this output:
Code:

Can't connect to MySQL server on '<ip>' (10060) (2003)
with correct information in sql.cfg file.
I'm also logged in as admin@localhost, access denied with admin@<ip> in PhpMyAdmin.

Spunky 05-23-2009 16:20

Re: How to connect to MySQL through internet?
 
Is the port open on the host machine? If not, you'd be able to connect locally, but not remotely.

Rirre 05-23-2009 16:24

Re: How to connect to MySQL through internet?
 
Quote:

Originally Posted by Spunky (Post 833280)
Is the port open on the host machine? If not, you'd be able to connect locally, but not remotely.

EDIT: Oh, wait.
No I guess not. Tested via Telnet and it doesn't respond, but it does to the webserver.

Rirre 05-23-2009 19:25

Re: How to connect to MySQL through internet?
 
Haha! Solved xD
The problem was i didn't enable 3306 port in Windows Firewall :P
Now its working! :D

alexinno 05-24-2009 03:27

Re: How to connect to MySQL through internet?
 
you should delete that 'Any' user from the accounts table :)

obamaviva 05-26-2009 23:56

Re: How to connect to MySQL through internet?
 
I'm also logged in as admin@localhost

danielkza 05-29-2009 15:07

Re: How to connect to MySQL through internet?
 
Quote:

Originally Posted by alexinno (Post 833505)
you should delete that 'Any' user from the accounts table :)

It's a denial entry.


All times are GMT -4. The time now is 20:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.