UltimateSephiroth
New Member
- Messages
- 27
- Reaction score
- 0
- Points
- 0
Hi, I'm UltimateSephiroth and I come from Finland.
I've shortly registered myself an account 'gmmaster' and the subdomain 'mecharena.elementfx.com'. I'm just starting off with MySQL but I have to ask a question.
I can access my database 'MechArenaLog' by my PHP document http://mecharena.elementfx.com/mysql_test.php. However, this is not exactly what I am looking for. The situation is that I make games using Game Maker (see www.yoyogames.com) and I use a DLL which should make MySQL available. However, I seem not to get the settings right. The game just returns "Can't connect to MySQL server on 'database.x10hosting.com' (10061)".
The code I'm using is:
gmsql_connect("database.x10hosting.com:3306","gmmaster_MAdef","**********","gmmaster_MechArenaLog")
(without the space in username & having the correct password in the place of those asterisks)
and the syntax is:
Also, I've allowed %.x10hosting.com and my own IP in the remote MySQL settings. However, I always seem to get the same error. Is it even possible to connect there this way or am I doing something wrong?
Thank you in advance.
I've shortly registered myself an account 'gmmaster' and the subdomain 'mecharena.elementfx.com'. I'm just starting off with MySQL but I have to ask a question.
I can access my database 'MechArenaLog' by my PHP document http://mecharena.elementfx.com/mysql_test.php. However, this is not exactly what I am looking for. The situation is that I make games using Game Maker (see www.yoyogames.com) and I use a DLL which should make MySQL available. However, I seem not to get the settings right. The game just returns "Can't connect to MySQL server on 'database.x10hosting.com' (10061)".
The code I'm using is:
gmsql_connect("database.x10hosting.com:3306","gmmaster_MAdef","**********","gmmaster_MechArenaLog")
(without the space in username & having the correct password in the place of those asterisks)
and the syntax is:
-----------------------------------------------------------------------------------------------------------------------------
gmsql_connect(host[ort],username,password,database)
-----------------------------------------------------------------------------------------------------------------------------
Connects to the given database server location with the specified credentials.
host[ort]:
Specifies the location of the MySQL database server. You can either use a TCP/IP address or an URL. Optionally, a port number can be specified behind a colon.
username:
The user name to log on with.
password:
The password corresponding to the username.
database:
Name of the database to connect to. Pass an empty string if you wish to connect to a database at a later stage.
Example:
if !gmsql_connect('215.241.221.124:2031','player','secret','asteroids') show_message(gmsql_errormessage());
Logs on to the server located at 215.241.221.124 with port number 2031 as user 'player' with password 'secret', connecting to database 'asteroids'.
Returns 1 if connection was successful and 0 when failed. Check gmsql_errorcode() and gmsql_errormessage() for more information on failure.
Also, I've allowed %.x10hosting.com and my own IP in the remote MySQL settings. However, I always seem to get the same error. Is it even possible to connect there this way or am I doing something wrong?
Thank you in advance.