MySQL Database access

Snaked

New Member
Messages
13
Reaction score
0
Points
0
For the past month, i have been programming a game. I have setup an engine to connect to a mysql database and retrieve a set of highscores / send in a highscore. I have tested this through PHP on the same host (uploaded to my website) with success. But, when I try to connect through the game with the same login/host details, it fails... The code i use in-game is correct and with a separate MySQL database (different host) it works just like it should.
$host = "localhost";
$user = "snaked";
$pass = "******************";
$scores_db = "snaked_mmcdb";

that is how my game connects. And fails.

How can i get it to connect properly?
The game is going to be released as freeware on the website. Oh, I am using this for other things apart from mysql, so don't get me wrong...

TA,
Snaked
 

vinayan

New Member
Messages
43
Reaction score
0
Points
0
Seems like that your using your account user name as datbase user. you need to create mysql user and set permission for accessing database . after that edit your configuration file like this



$host = "localhost";
$user = "snaked_xxxx";
$pass = "******************";
$scores_db = "snaked_mmcdb";
 

Snaked

New Member
Messages
13
Reaction score
0
Points
0
all i need to do now is turn old passwords on. How do i do this?
 
Last edited:
Top