Database

Status
Not open for further replies.

fraserblood

New Member
Messages
4
Reaction score
0
Points
0
When i try to install a game to the website, i encounter a database error which says Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'fraser'@'web4.vital.x10hosting.com' (using password: YES) in /home/fraser93/public_html/class/class_db_mysql.php on line 60
FATAL ERROR: Could not connect to database on localhost (Access denied for user 'fraser'@'web4.vital.x10hosting.com' (using password: YES))

how could i fix this as i think im not setting up a mySQL database properly
 

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
User and database names are in the form of CpanelUserName_MySQLUserName and CPanelUserName_DatabaseName.

If your CPanel name is 'joe' and your MySQL user is 'user' for database 'db' it would be 'joe_user' and 'joe_db', respectively.

If you haven't done so already, you have to create the users using the MySQL databases tool of CPanel and give the user permissions to the database using the same tool.
 

carl6969

Community Support Team
Community Support
Messages
6,874
Reaction score
206
Points
63
* Problem Solved - Thread Closed *
 
Status
Not open for further replies.
Top