Access denied to mysql server

Status
Not open for further replies.

onzyme

New Member
Messages
6
Reaction score
0
Points
0
hello,
I was about to install my website engine on a free hosting on x10hosting..
when I wanted to connect to mysql database..I got this msg :


Failed to Connect to MySQL Server
Please check your login information and try again.
Access denied for user 'xxxxxxxxxx'@'stoli.x10hosting.com' (using password: YES)

I tried many times but in vain..
I verified the user name and the password..
in mysql hostname I used : mysql-stoli.x10hosting.com

can you help please
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
Try using localhost for hostname for mysql
 

tracker_star

New Member
Messages
4
Reaction score
0
Points
0
hello,
I was about to install my website engine on a free hosting on x10hosting..
when I wanted to connect to mysql database..I got this msg :


Failed to Connect to MySQL Server
Please check your login information and try again.
Access denied for user 'xxxxxxxxxx'@'stoli.x10hosting.com' (using password: YES)

I tried many times but in vain..
I verified the user name and the password..
in mysql hostname I used : mysql-stoli.x10hosting.com

can you help please


Check you MySQL statement ! Maybe you have write something wrong ( user or password ) !

-------------------------------------------------
Sorry for my English !
 

onzyme

New Member
Messages
6
Reaction score
0
Points
0
Check you MySQL statement ! Maybe you have write something wrong ( user or password ) !


I checked them..and modified them..I also added a new database user..
I think that the probleme come from the hostname..
although on page cpanel they confirm that it's : mysql-stoli.x10hosting.com :rant2:
 

tracker_star

New Member
Messages
4
Reaction score
0
Points
0
I checked them..and modified them..I also added a new database user..
I think that the probleme come from the hostname..
although on page cpanel they confirm that it's : mysql-stoli.x10hosting.com :rant2:


You have also creat a new database right ?
And than do you have creat a new user ?
And than Add User To Database ?

Here the screnn may help you ! : http://tracker-star.22web.net/imghost/viewer.php?file=69172945219862187600.jpg


I hope that i can help you !

mfg Tracker-Star
 

onzyme

New Member
Messages
6
Reaction score
0
Points
0

totalmockery

New Member
Messages
27
Reaction score
1
Points
0
Maybe this will help .. it's how I connect to my databases:
Code:
//Database Information
$host="localhost:3306"; // Host name
$dbuser="Cpanelusername_dbusername"; // Mysql username
$dbpass="dbpassword"; // Mysql password

//Databases
$database="Cpanelusername_databasename"; // Database

Cpanelusername = Your username used to log into Cpanel
DBusername = The username you set up to access your databases
DBpassword = The password associated with the above username
Databasename = The name of your database

//Connecting
mysql_connect("$host", "$dbuser", "$dbpass")or die("cannot connect");
mysql_select_db("$database")or die("cannot select DB");
Hope this helps.
 

onzyme

New Member
Messages
6
Reaction score
0
Points
0
Maybe this will help .. it's how I connect to my databases:
Code:
//Database Information
$host="localhost:3306"; // Host name
$dbuser="Cpanelusername_dbusername"; // Mysql username
$dbpass="dbpassword"; // Mysql password

//Databases
$database="Cpanelusername_databasename"; // Database

Cpanelusername = Your username used to log into Cpanel
DBusername = The username you set up to access your databases
DBpassword = The password associated with the above username
Databasename = The name of your database

//Connecting
mysql_connect("$host", "$dbuser", "$dbpass")or die("cannot connect");
mysql_select_db("$database")or die("cannot select DB");
Hope this helps.

can you tell me where can I found or put this code please ?
I edited "install.php" of my engine by adding the name of the database, the user and the pass..
but it doesn't work !! :happysad:
 

totalmockery

New Member
Messages
27
Reaction score
1
Points
0
Unfortunately I wouldn't know where to put it ... generally you have some sort of config.php file or something similar.

I created my website from scratch so I organized everything, pre-built systems are a little more tricky.
 

tracker_star

New Member
Messages
4
Reaction score
0
Points
0
can you tell me where can I found or put this code please ?
I edited "install.php" of my engine by adding the name of the database, the user and the pass..
but it doesn't work !! :happysad:

I am sorry , but what do you want to install ? :happysad:
 

onzyme

New Member
Messages
6
Reaction score
0
Points
0
is anybody else have a solution !:dunno:
Edit:
I am sorry , but what do you want to install ? :happysad:

I m installing a social engine ultimate..
Edit:
Hi everybody..

It works finaly..I used "-" instead "_" in the username :happysad:
Thanks for averyone who answer to my question..
and I m so sorry for diturbing :cool:

:lockd:
 
Last edited:
Status
Not open for further replies.
Top