SQL connection problems.

Status
Not open for further replies.

tehmedia

New Member
Messages
2
Reaction score
0
Points
0
Now, I wouldn't be posting here begging for help if I hadn't got to the ends of my wit. Anyhow I am having trouble. I'm uploading a text based mmorpg to test in beta before I purchase a domain and hosting.

Write Config...
Config written.
Attempting DB connection

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'game'@'cossacks.x10hosting.com' (using password: YES) in /home/tehmedia/public_html/class/class_db_mysql.php on line 46
FATAL ERROR: Could not connect to database on localhost (Access denied for user 'game'@'cossacks.x10hosting.com' (using password: YES))

It's really depressing, I can't even get this right - I don't know what I'd do on the cronjobs.

Line 46;
Code:
      $this->connection_id=mysql_connect($this->host, $this->user, $this->pass, 1) or $this->connection_error();

Any help? I've set a username and password but I canny' get it to work captain. ;)
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Hi,

The Username should be your cPanel username followed by an underscore and the name of the MySQL user you set up in cPanel

For Example: cpanel_dbuser

The Password should be whatever you set when you created the MySQL user in cPanel

The Host should be 'localhost'

You should check that you have created the database and database user in cPanel and that you have these details correct in your script.
 

tehmedia

New Member
Messages
2
Reaction score
0
Points
0
Thanks for your quick reply, I've tried that and I'm still experiencing the same problems.

Would you be able to do this for me? It's a simple to use page but I cannot seem to figure it out.
 
Last edited:

vishal

-::-X10 Guru-::-
Community Support
Messages
5,255
Reaction score
192
Points
63
Few days before i was facing the same problem,but when i added the 'localhost' as dbserver it started working,and also my ip was pointing to old ip,i also corrected it.
What is your link that is giving the error
 
Status
Not open for further replies.
Top